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-j Show documentation
Show all versions of mysql-connector-j Show documentation
JDBC Type 4 driver for MySQL.
/*
* Copyright (c) 2015, 2024, 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 designed to work with certain software 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 either included with the program or referenced in the documentation.
*
* 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
// Protobuf Java Version: 4.26.1
public final class MysqlxExpect {
private MysqlxExpect() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
MysqlxExpect.class.getName());
}
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expect.Open)
OpenOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
Open.class.getName());
}
// Use Open.newBuilder() to construct.
private Open(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Open() {
op_ = 0;
cond_ = java.util.Collections.emptyList();
}
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.GeneratedMessage.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),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
CtxOperation.class.getName());
}
/**
*
* * 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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expect.Open.Condition)
ConditionOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
Condition.class.getName());
}
// Use Condition.newBuilder() to construct.
private Condition(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Condition() {
conditionValue_ = com.google.protobuf.ByteString.EMPTY;
op_ = 0;
}
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.GeneratedMessage.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),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
Key.class.getName());
}
/**
*
* * 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),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
ConditionOperation.class.getName());
}
/**
*
* * 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_ = 0;
/**
* 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_ = 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_;
}
public static final int OP_FIELD_NUMBER = 3;
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() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.forNumber(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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
conditionKey_ = 0;
conditionValue_ = com.google.protobuf.ByteString.EMPTY;
op_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.conditionKey_ = conditionKey_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.conditionValue_ = conditionValue_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.op_ = op_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
conditionKey_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
conditionValue_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation tmpValue =
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
op_ = tmpRaw;
bitField0_ |= 0x00000004;
}
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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) {
conditionKey_ = value;
bitField0_ |= 0x00000001;
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(); }
conditionValue_ = value;
bitField0_ |= 0x00000002;
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() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.ConditionOperation.forNumber(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;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int OP_FIELD_NUMBER = 1;
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() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.forNumber(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;
@SuppressWarnings("serial")
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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, op_);
}
for (int i = 0; i < cond_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, cond_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
op_ = 0;
if (condBuilder_ == null) {
cond_ = java.util.Collections.emptyList();
} else {
cond_ = null;
condBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.mysql.cj.x.protobuf.MysqlxExpect.Open result) {
if (condBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
cond_ = java.util.Collections.unmodifiableList(cond_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.cond_ = cond_;
} else {
result.cond_ = condBuilder_.build();
}
}
private void buildPartial0(com.mysql.cj.x.protobuf.MysqlxExpect.Open result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.op_ = op_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.GeneratedMessage.alwaysUseFieldBuilders ?
getCondFieldBuilder() : null;
} else {
condBuilder_.addAllMessages(other.cond_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation tmpValue =
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
op_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 18: {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition m =
input.readMessage(
com.mysql.cj.x.protobuf.MysqlxExpect.Open.Condition.parser(),
extensionRegistry);
if (condBuilder_ == null) {
ensureCondIsMutable();
cond_.add(m);
} else {
condBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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() {
com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation result = com.mysql.cj.x.protobuf.MysqlxExpect.Open.CtxOperation.forNumber(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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
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_;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expect.Close)
CloseOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 1,
/* suffix= */ "",
Close.class.getName());
}
// Use Close.newBuilder() to construct.
private Close(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Close() {
}
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.GeneratedMessage.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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpect.Close)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpect.Close other = (com.mysql.cj.x.protobuf.MysqlxExpect.Close) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@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 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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.FieldAccessorTable(
internal_static_Mysqlx_Expect_Close_descriptor,
new java.lang.String[] { });
descriptor.resolveAllFeaturesImmutable();
com.mysql.cj.x.protobuf.Mysqlx.getDescriptor();
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);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy