com.mysql.cj.x.protobuf.MysqlxExpect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mysql-connector-java Show documentation
Show all versions of mysql-connector-java Show documentation
Fixed bugs repo for official MySQL JDBC connector
The newest version!
/*
* Copyright (c) 2015, 2022, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 2.0, as published by the
* Free Software Foundation.
*
* This program is also distributed with certain software (including but not
* limited to OpenSSL) that is licensed under separate terms, as designated in a
* particular file or component or in included license documentation. The
* authors of MySQL hereby grant you an additional permission to link the
* program and your derivative works with the separately licensed software that
* they have included with MySQL.
*
* Without limiting anything contained in the foregoing, this file, which is
* part of MySQL Connector/J, is also subject to the Universal FOSS Exception,
* version 1.0, a copy of which can be found at
* http://oss.oracle.com/licenses/universal-foss-exception.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
* for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package com.mysql.cj.x.protobuf;
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mysqlx_expect.proto
public final class MysqlxExpect {
private MysqlxExpect() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface OpenOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expect.Open)
com.google.protobuf.MessageOrBuilder {
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return Whether the op field is set.
*/
boolean hasOp();
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return The op.
*/
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation getOp();
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
java.util.List
getCondList();
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getCond(int index);
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
int getCondCount();
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder>
getCondOrBuilderList();
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder getCondOrBuilder(
int index);
}
/**
*
**
*Open an Expect block and set/unset the conditions that have to
*be fulfilled.
*If any of the conditions fail, all enclosed messages will fail
*with a ``Mysqlx::Error`` message.
*@returns @ref Mysqlx::Ok on success, @ref Mysqlx::Error on error
*
*
* Protobuf type {@code Mysqlx.Expect.Open}
*/
public static final class Open extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expect.Open)
OpenOrBuilder {
private static final long serialVersionUID = 0L;
// Use Open.newBuilder() to construct.
private Open(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Open() {
op_ = 0;
cond_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Open();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Open(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation value = com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
op_ = rawValue;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
cond_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
cond_.add(
input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
cond_ = java.util.Collections.unmodifiableList(cond_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.class, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Expect.Open.CtxOperation}
*/
public enum CtxOperation
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
** copy the operations from the parent Expect-block
*
*
* EXPECT_CTX_COPY_PREV = 0;
*/
EXPECT_CTX_COPY_PREV(0),
/**
*
** start with a empty set of operations
*
*
* EXPECT_CTX_EMPTY = 1;
*/
EXPECT_CTX_EMPTY(1),
;
/**
*
** copy the operations from the parent Expect-block
*
*
* EXPECT_CTX_COPY_PREV = 0;
*/
public static final int EXPECT_CTX_COPY_PREV_VALUE = 0;
/**
*
** start with a empty set of operations
*
*
* EXPECT_CTX_EMPTY = 1;
*/
public static final int EXPECT_CTX_EMPTY_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CtxOperation valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CtxOperation forNumber(int value) {
switch (value) {
case 0: return EXPECT_CTX_COPY_PREV;
case 1: return EXPECT_CTX_EMPTY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CtxOperation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CtxOperation findValueByNumber(int number) {
return CtxOperation.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.Open.getDescriptor().getEnumTypes().get(0);
}
private static final CtxOperation[] VALUES = values();
public static CtxOperation valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private CtxOperation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Expect.Open.CtxOperation)
}
public interface ConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expect.Open.Condition)
com.google.protobuf.MessageOrBuilder {
/**
* required uint32 condition_key = 1;
* @return Whether the conditionKey field is set.
*/
boolean hasConditionKey();
/**
* required uint32 condition_key = 1;
* @return The conditionKey.
*/
int getConditionKey();
/**
* optional bytes condition_value = 2;
* @return Whether the conditionValue field is set.
*/
boolean hasConditionValue();
/**
* optional bytes condition_value = 2;
* @return The conditionValue.
*/
com.google.protobuf.ByteString getConditionValue();
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return Whether the op field is set.
*/
boolean hasOp();
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return The op.
*/
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation getOp();
}
/**
* Protobuf type {@code Mysqlx.Expect.Open.Condition}
*/
public static final class Condition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expect.Open.Condition)
ConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Condition.newBuilder() to construct.
private Condition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Condition() {
conditionValue_ = com.google.protobuf.ByteString.EMPTY;
op_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Condition();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Condition(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
conditionKey_ = input.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
conditionValue_ = input.readBytes();
break;
}
case 24: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation value = com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
op_ = rawValue;
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_Condition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_Condition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.class, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Expect.Open.Condition.Key}
*/
public enum Key
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
** Change error propagation behaviour
*
*
* EXPECT_NO_ERROR = 1;
*/
EXPECT_NO_ERROR(1),
/**
*
** Check if X Protocol field exists
*
*
* EXPECT_FIELD_EXIST = 2;
*/
EXPECT_FIELD_EXIST(2),
/**
*
** Check if X Protocol supports document _id generation
*
*
* EXPECT_DOCID_GENERATED = 3;
*/
EXPECT_DOCID_GENERATED(3),
;
/**
*
** Change error propagation behaviour
*
*
* EXPECT_NO_ERROR = 1;
*/
public static final int EXPECT_NO_ERROR_VALUE = 1;
/**
*
** Check if X Protocol field exists
*
*
* EXPECT_FIELD_EXIST = 2;
*/
public static final int EXPECT_FIELD_EXIST_VALUE = 2;
/**
*
** Check if X Protocol supports document _id generation
*
*
* EXPECT_DOCID_GENERATED = 3;
*/
public static final int EXPECT_DOCID_GENERATED_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Key valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Key forNumber(int value) {
switch (value) {
case 1: return EXPECT_NO_ERROR;
case 2: return EXPECT_FIELD_EXIST;
case 3: return EXPECT_DOCID_GENERATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Key> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Key findValueByNumber(int number) {
return Key.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.getDescriptor().getEnumTypes().get(0);
}
private static final Key[] VALUES = values();
public static Key valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Key(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Expect.Open.Condition.Key)
}
/**
* Protobuf enum {@code Mysqlx.Expect.Open.Condition.ConditionOperation}
*/
public enum ConditionOperation
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
** set the condition; set, if not set; overwrite, if set
*
*
* EXPECT_OP_SET = 0;
*/
EXPECT_OP_SET(0),
/**
*
** unset the condition
*
*
* EXPECT_OP_UNSET = 1;
*/
EXPECT_OP_UNSET(1),
;
/**
*
** set the condition; set, if not set; overwrite, if set
*
*
* EXPECT_OP_SET = 0;
*/
public static final int EXPECT_OP_SET_VALUE = 0;
/**
*
** unset the condition
*
*
* EXPECT_OP_UNSET = 1;
*/
public static final int EXPECT_OP_UNSET_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConditionOperation valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConditionOperation forNumber(int value) {
switch (value) {
case 0: return EXPECT_OP_SET;
case 1: return EXPECT_OP_UNSET;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConditionOperation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConditionOperation findValueByNumber(int number) {
return ConditionOperation.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.getDescriptor().getEnumTypes().get(1);
}
private static final ConditionOperation[] VALUES = values();
public static ConditionOperation valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ConditionOperation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Expect.Open.Condition.ConditionOperation)
}
private int bitField0_;
public static final int CONDITION_KEY_FIELD_NUMBER = 1;
private int conditionKey_;
/**
* required uint32 condition_key = 1;
* @return Whether the conditionKey field is set.
*/
@java.lang.Override
public boolean hasConditionKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required uint32 condition_key = 1;
* @return The conditionKey.
*/
@java.lang.Override
public int getConditionKey() {
return conditionKey_;
}
public static final int CONDITION_VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString conditionValue_;
/**
* optional bytes condition_value = 2;
* @return Whether the conditionValue field is set.
*/
@java.lang.Override
public boolean hasConditionValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bytes condition_value = 2;
* @return The conditionValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConditionValue() {
return conditionValue_;
}
public static final int OP_FIELD_NUMBER = 3;
private int op_;
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return Whether the op field is set.
*/
@java.lang.Override public boolean hasOp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return The op.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation getOp() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.valueOf(op_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.EXPECT_OP_SET : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasConditionKey()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(1, conditionKey_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, conditionValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, op_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, conditionKey_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, conditionValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, op_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition other = (com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition) obj;
if (hasConditionKey() != other.hasConditionKey()) return false;
if (hasConditionKey()) {
if (getConditionKey()
!= other.getConditionKey()) return false;
}
if (hasConditionValue() != other.hasConditionValue()) return false;
if (hasConditionValue()) {
if (!getConditionValue()
.equals(other.getConditionValue())) return false;
}
if (hasOp() != other.hasOp()) return false;
if (hasOp()) {
if (op_ != other.op_) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasConditionKey()) {
hash = (37 * hash) + CONDITION_KEY_FIELD_NUMBER;
hash = (53 * hash) + getConditionKey();
}
if (hasConditionValue()) {
hash = (37 * hash) + CONDITION_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getConditionValue().hashCode();
}
if (hasOp()) {
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Expect.Open.Condition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expect.Open.Condition)
com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_Condition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_Condition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.class, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
conditionKey_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
conditionValue_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
op_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_Condition_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition build() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition result = new com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.conditionKey_ = conditionKey_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.conditionValue_ = conditionValue_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.op_ = op_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.getDefaultInstance()) return this;
if (other.hasConditionKey()) {
setConditionKey(other.getConditionKey());
}
if (other.hasConditionValue()) {
setConditionValue(other.getConditionValue());
}
if (other.hasOp()) {
setOp(other.getOp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasConditionKey()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int conditionKey_ ;
/**
* required uint32 condition_key = 1;
* @return Whether the conditionKey field is set.
*/
@java.lang.Override
public boolean hasConditionKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required uint32 condition_key = 1;
* @return The conditionKey.
*/
@java.lang.Override
public int getConditionKey() {
return conditionKey_;
}
/**
* required uint32 condition_key = 1;
* @param value The conditionKey to set.
* @return This builder for chaining.
*/
public Builder setConditionKey(int value) {
bitField0_ |= 0x00000001;
conditionKey_ = value;
onChanged();
return this;
}
/**
* required uint32 condition_key = 1;
* @return This builder for chaining.
*/
public Builder clearConditionKey() {
bitField0_ = (bitField0_ & ~0x00000001);
conditionKey_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString conditionValue_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes condition_value = 2;
* @return Whether the conditionValue field is set.
*/
@java.lang.Override
public boolean hasConditionValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bytes condition_value = 2;
* @return The conditionValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConditionValue() {
return conditionValue_;
}
/**
* optional bytes condition_value = 2;
* @param value The conditionValue to set.
* @return This builder for chaining.
*/
public Builder setConditionValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
conditionValue_ = value;
onChanged();
return this;
}
/**
* optional bytes condition_value = 2;
* @return This builder for chaining.
*/
public Builder clearConditionValue() {
bitField0_ = (bitField0_ & ~0x00000002);
conditionValue_ = getDefaultInstance().getConditionValue();
onChanged();
return this;
}
private int op_ = 0;
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return Whether the op field is set.
*/
@java.lang.Override public boolean hasOp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return The op.
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation getOp() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.valueOf(op_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.EXPECT_OP_SET : result;
}
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @param value The op to set.
* @return This builder for chaining.
*/
public Builder setOp(com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
op_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Mysqlx.Expect.Open.Condition.ConditionOperation op = 3 [default = EXPECT_OP_SET];
* @return This builder for chaining.
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000004);
op_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Expect.Open.Condition)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expect.Open.Condition)
private static final com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition();
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Condition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Condition(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int OP_FIELD_NUMBER = 1;
private int op_;
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return Whether the op field is set.
*/
@java.lang.Override public boolean hasOp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return The op.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation getOp() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.valueOf(op_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.EXPECT_CTX_COPY_PREV : result;
}
public static final int COND_FIELD_NUMBER = 2;
private java.util.List cond_;
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
@java.lang.Override
public java.util.List getCondList() {
return cond_;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
@java.lang.Override
public java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder>
getCondOrBuilderList() {
return cond_;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
@java.lang.Override
public int getCondCount() {
return cond_.size();
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getCond(int index) {
return cond_.get(index);
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder getCondOrBuilder(
int index) {
return cond_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getCondCount(); i++) {
if (!getCond(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, op_);
}
for (int i = 0; i < cond_.size(); i++) {
output.writeMessage(2, cond_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, op_);
}
for (int i = 0; i < cond_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, cond_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Open)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpect.Open other = (com.mysql.cj.x.protobuf.MysqlxExpect.Open) obj;
if (hasOp() != other.hasOp()) return false;
if (hasOp()) {
if (op_ != other.op_) return false;
}
if (!getCondList()
.equals(other.getCondList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOp()) {
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
}
if (getCondCount() > 0) {
hash = (37 * hash) + COND_FIELD_NUMBER;
hash = (53 * hash) + getCondList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxExpect.Open prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
*Open an Expect block and set/unset the conditions that have to
*be fulfilled.
*If any of the conditions fail, all enclosed messages will fail
*with a ``Mysqlx::Error`` message.
*@returns @ref Mysqlx::Ok on success, @ref Mysqlx::Error on error
*
*
* Protobuf type {@code Mysqlx.Expect.Open}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expect.Open)
com.mysql.cj.x.protobuf.MysqlxExpect.OpenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.class, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpect.Open.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCondFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
op_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (condBuilder_ == null) {
cond_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
condBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Open_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpect.Open.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open build() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open result = new com.mysql.cj.x.protobuf.MysqlxExpect.Open(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.op_ = op_;
if (condBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
cond_ = java.util.Collections.unmodifiableList(cond_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.cond_ = cond_;
} else {
result.cond_ = condBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Open) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpect.Open)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpect.Open other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpect.Open.getDefaultInstance()) return this;
if (other.hasOp()) {
setOp(other.getOp());
}
if (condBuilder_ == null) {
if (!other.cond_.isEmpty()) {
if (cond_.isEmpty()) {
cond_ = other.cond_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCondIsMutable();
cond_.addAll(other.cond_);
}
onChanged();
}
} else {
if (!other.cond_.isEmpty()) {
if (condBuilder_.isEmpty()) {
condBuilder_.dispose();
condBuilder_ = null;
cond_ = other.cond_;
bitField0_ = (bitField0_ & ~0x00000002);
condBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCondFieldBuilder() : null;
} else {
condBuilder_.addAllMessages(other.cond_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getCondCount(); i++) {
if (!getCond(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpect.Open parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpect.Open) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int op_ = 0;
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return Whether the op field is set.
*/
@java.lang.Override public boolean hasOp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return The op.
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation getOp() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.valueOf(op_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.EXPECT_CTX_COPY_PREV : result;
}
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @param value The op to set.
* @return This builder for chaining.
*/
public Builder setOp(com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
op_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Mysqlx.Expect.Open.CtxOperation op = 1 [default = EXPECT_CTX_COPY_PREV];
* @return This builder for chaining.
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000001);
op_ = 0;
onChanged();
return this;
}
private java.util.List cond_ =
java.util.Collections.emptyList();
private void ensureCondIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
cond_ = new java.util.ArrayList(cond_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder, com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder> condBuilder_;
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public java.util.List getCondList() {
if (condBuilder_ == null) {
return java.util.Collections.unmodifiableList(cond_);
} else {
return condBuilder_.getMessageList();
}
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public int getCondCount() {
if (condBuilder_ == null) {
return cond_.size();
} else {
return condBuilder_.getCount();
}
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getCond(int index) {
if (condBuilder_ == null) {
return cond_.get(index);
} else {
return condBuilder_.getMessage(index);
}
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder setCond(
int index, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition value) {
if (condBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCondIsMutable();
cond_.set(index, value);
onChanged();
} else {
condBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder setCond(
int index, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder builderForValue) {
if (condBuilder_ == null) {
ensureCondIsMutable();
cond_.set(index, builderForValue.build());
onChanged();
} else {
condBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder addCond(com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition value) {
if (condBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCondIsMutable();
cond_.add(value);
onChanged();
} else {
condBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder addCond(
int index, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition value) {
if (condBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCondIsMutable();
cond_.add(index, value);
onChanged();
} else {
condBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder addCond(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder builderForValue) {
if (condBuilder_ == null) {
ensureCondIsMutable();
cond_.add(builderForValue.build());
onChanged();
} else {
condBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder addCond(
int index, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder builderForValue) {
if (condBuilder_ == null) {
ensureCondIsMutable();
cond_.add(index, builderForValue.build());
onChanged();
} else {
condBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder addAllCond(
java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition> values) {
if (condBuilder_ == null) {
ensureCondIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cond_);
onChanged();
} else {
condBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder clearCond() {
if (condBuilder_ == null) {
cond_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
condBuilder_.clear();
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public Builder removeCond(int index) {
if (condBuilder_ == null) {
ensureCondIsMutable();
cond_.remove(index);
onChanged();
} else {
condBuilder_.remove(index);
}
return this;
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder getCondBuilder(
int index) {
return getCondFieldBuilder().getBuilder(index);
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder getCondOrBuilder(
int index) {
if (condBuilder_ == null) {
return cond_.get(index); } else {
return condBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder>
getCondOrBuilderList() {
if (condBuilder_ != null) {
return condBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(cond_);
}
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder addCondBuilder() {
return getCondFieldBuilder().addBuilder(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder addCondBuilder(
int index) {
return getCondFieldBuilder().addBuilder(
index, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expect.Open.Condition cond = 2;
*/
public java.util.List
getCondBuilderList() {
return getCondFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder, com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder>
getCondFieldBuilder() {
if (condBuilder_ == null) {
condBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition, com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.Builder, com.mysql.cj.x.protobuf.MysqlxExpect.Open.ConditionOrBuilder>(
cond_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
cond_ = null;
}
return condBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Expect.Open)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expect.Open)
private static final com.mysql.cj.x.protobuf.MysqlxExpect.Open DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpect.Open();
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Open getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Open parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Open(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expect.Close)
com.google.protobuf.MessageOrBuilder {
}
/**
*
**
*Close a Expect block.
*Closing a Expect block restores the state of the previous Expect
*block for the following messages.
*@returns @ref Mysqlx::Ok on success, @ref Mysqlx::Error on error
*
*
* Protobuf type {@code Mysqlx.Expect.Close}
*/
public static final class Close extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expect.Close)
CloseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Close.newBuilder() to construct.
private Close(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Close() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Close();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Close(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Close_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Close_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpect.Close.class, com.mysql.cj.x.protobuf.MysqlxExpect.Close.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Close)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpect.Close other = (com.mysql.cj.x.protobuf.MysqlxExpect.Close) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxExpect.Close prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
*Close a Expect block.
*Closing a Expect block restores the state of the previous Expect
*block for the following messages.
*@returns @ref Mysqlx::Ok on success, @ref Mysqlx::Error on error
*
*
* Protobuf type {@code Mysqlx.Expect.Close}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expect.Close)
com.mysql.cj.x.protobuf.MysqlxExpect.CloseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Close_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Close_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpect.Close.class, com.mysql.cj.x.protobuf.MysqlxExpect.Close.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpect.Close.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpect.internal_static_Mysqlx_Expect_Close_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Close getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpect.Close.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Close build() {
com.mysql.cj.x.protobuf.MysqlxExpect.Close result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Close buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpect.Close result = new com.mysql.cj.x.protobuf.MysqlxExpect.Close(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Close) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpect.Close)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpect.Close other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpect.Close.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpect.Close parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpect.Close) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Expect.Close)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expect.Close)
private static final com.mysql.cj.x.protobuf.MysqlxExpect.Close DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpect.Close();
}
public static com.mysql.cj.x.protobuf.MysqlxExpect.Close getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Close parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Close(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Close getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Mysqlx_Expect_Open_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Mysqlx_Expect_Open_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Mysqlx_Expect_Open_Condition_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Mysqlx_Expect_Open_Condition_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Mysqlx_Expect_Close_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Mysqlx_Expect_Close_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023mysqlx_expect.proto\022\rMysqlx.Expect\032\014my" +
"sqlx.proto\"\326\003\n\004Open\022B\n\002op\030\001 \001(\0162 .Mysqlx" +
".Expect.Open.CtxOperation:\024EXPECT_CTX_CO" +
"PY_PREV\022+\n\004cond\030\002 \003(\0132\035.Mysqlx.Expect.Op" +
"en.Condition\032\226\002\n\tCondition\022\025\n\rcondition_" +
"key\030\001 \002(\r\022\027\n\017condition_value\030\002 \001(\014\022K\n\002op" +
"\030\003 \001(\01620.Mysqlx.Expect.Open.Condition.Co" +
"nditionOperation:\rEXPECT_OP_SET\"N\n\003Key\022\023" +
"\n\017EXPECT_NO_ERROR\020\001\022\026\n\022EXPECT_FIELD_EXIS" +
"T\020\002\022\032\n\026EXPECT_DOCID_GENERATED\020\003\"<\n\022Condi" +
"tionOperation\022\021\n\rEXPECT_OP_SET\020\000\022\023\n\017EXPE" +
"CT_OP_UNSET\020\001\">\n\014CtxOperation\022\030\n\024EXPECT_" +
"CTX_COPY_PREV\020\000\022\024\n\020EXPECT_CTX_EMPTY\020\001:\004\210" +
"\3520\030\"\r\n\005Close:\004\210\3520\031B\031\n\027com.mysql.cj.x.pro" +
"tobuf"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.mysql.cj.x.protobuf.Mysqlx.getDescriptor(),
});
internal_static_Mysqlx_Expect_Open_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Mysqlx_Expect_Open_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Mysqlx_Expect_Open_descriptor,
new java.lang.String[] { "Op", "Cond", });
internal_static_Mysqlx_Expect_Open_Condition_descriptor =
internal_static_Mysqlx_Expect_Open_descriptor.getNestedTypes().get(0);
internal_static_Mysqlx_Expect_Open_Condition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Mysqlx_Expect_Open_Condition_descriptor,
new java.lang.String[] { "ConditionKey", "ConditionValue", "Op", });
internal_static_Mysqlx_Expect_Close_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Mysqlx_Expect_Close_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Mysqlx_Expect_Close_descriptor,
new java.lang.String[] { });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.mysql.cj.x.protobuf.Mysqlx.clientMessageId);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.mysql.cj.x.protobuf.Mysqlx.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy