com.mysql.cj.x.protobuf.MysqlxDatatypes 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 all versions of mysql-connector-java
JDBC Type 4 driver for MySQL
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
*
* 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_datatypes.proto
@SuppressWarnings({ "cast" })
public final class MysqlxDatatypes {
private MysqlxDatatypes() {}
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 ScalarOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Datatypes.Scalar)
com.google.protobuf.MessageOrBuilder {
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
boolean hasType();
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type getType();
/**
* optional sint64 v_signed_int = 2;
*/
boolean hasVSignedInt();
/**
* optional sint64 v_signed_int = 2;
*/
long getVSignedInt();
/**
* optional uint64 v_unsigned_int = 3;
*/
boolean hasVUnsignedInt();
/**
* optional uint64 v_unsigned_int = 3;
*/
long getVUnsignedInt();
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
boolean hasVOctets();
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getVOctets();
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder getVOctetsOrBuilder();
/**
* optional double v_double = 6;
*/
boolean hasVDouble();
/**
* optional double v_double = 6;
*/
double getVDouble();
/**
* optional float v_float = 7;
*/
boolean hasVFloat();
/**
* optional float v_float = 7;
*/
float getVFloat();
/**
* optional bool v_bool = 8;
*/
boolean hasVBool();
/**
* optional bool v_bool = 8;
*/
boolean getVBool();
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
boolean hasVString();
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String getVString();
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder getVStringOrBuilder();
}
/**
*
* a scalar
*
*
* Protobuf type {@code Mysqlx.Datatypes.Scalar}
*/
public static final class Scalar extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Scalar)
ScalarOrBuilder {
private static final long serialVersionUID = 0L;
// Use Scalar.newBuilder() to construct.
private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Scalar() {
type_ = 1;
vSignedInt_ = 0L;
vUnsignedInt_ = 0L;
vDouble_ = 0D;
vFloat_ = 0F;
vBool_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Scalar(
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.MysqlxDatatypes.Scalar.Type value = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = rawValue;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
vSignedInt_ = input.readSInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
vUnsignedInt_ = input.readUInt64();
break;
}
case 42: {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = vOctets_.toBuilder();
}
vOctets_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(vOctets_);
vOctets_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 49: {
bitField0_ |= 0x00000010;
vDouble_ = input.readDouble();
break;
}
case 61: {
bitField0_ |= 0x00000020;
vFloat_ = input.readFloat();
break;
}
case 64: {
bitField0_ |= 0x00000040;
vBool_ = input.readBool();
break;
}
case 74: {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = vString_.toBuilder();
}
vString_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(vString_);
vString_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Datatypes.Scalar.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* V_SINT = 1;
*/
V_SINT(1),
/**
* V_UINT = 2;
*/
V_UINT(2),
/**
* V_NULL = 3;
*/
V_NULL(3),
/**
* V_OCTETS = 4;
*/
V_OCTETS(4),
/**
* V_DOUBLE = 5;
*/
V_DOUBLE(5),
/**
* V_FLOAT = 6;
*/
V_FLOAT(6),
/**
* V_BOOL = 7;
*/
V_BOOL(7),
/**
* V_STRING = 8;
*/
V_STRING(8),
;
/**
* V_SINT = 1;
*/
public static final int V_SINT_VALUE = 1;
/**
* V_UINT = 2;
*/
public static final int V_UINT_VALUE = 2;
/**
* V_NULL = 3;
*/
public static final int V_NULL_VALUE = 3;
/**
* V_OCTETS = 4;
*/
public static final int V_OCTETS_VALUE = 4;
/**
* V_DOUBLE = 5;
*/
public static final int V_DOUBLE_VALUE = 5;
/**
* V_FLOAT = 6;
*/
public static final int V_FLOAT_VALUE = 6;
/**
* V_BOOL = 7;
*/
public static final int V_BOOL_VALUE = 7;
/**
* V_STRING = 8;
*/
public static final int V_STRING_VALUE = 8;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 1: return V_SINT;
case 2: return V_UINT;
case 3: return V_NULL;
case 4: return V_OCTETS;
case 5: return V_DOUBLE;
case 6: return V_FLOAT;
case 7: return V_BOOL;
case 8: return V_STRING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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.MysqlxDatatypes.Scalar.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Datatypes.Scalar.Type)
}
public interface StringOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Datatypes.Scalar.String)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes value = 1;
*/
boolean hasValue();
/**
* required bytes value = 1;
*/
com.google.protobuf.ByteString getValue();
/**
* optional uint64 collation = 2;
*/
boolean hasCollation();
/**
* optional uint64 collation = 2;
*/
long getCollation();
}
/**
*
* a string with a charset/collation
*
*
* Protobuf type {@code Mysqlx.Datatypes.Scalar.String}
*/
public static final class String extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Scalar.String)
StringOrBuilder {
private static final long serialVersionUID = 0L;
// Use String.newBuilder() to construct.
private String(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private String() {
value_ = com.google.protobuf.ByteString.EMPTY;
collation_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private String(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
bitField0_ |= 0x00000001;
value_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
collation_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_String_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_String_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* required bytes value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes value = 1;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int COLLATION_FIELD_NUMBER = 2;
private long collation_;
/**
* optional uint64 collation = 2;
*/
public boolean hasCollation() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 collation = 2;
*/
public long getCollation() {
return collation_;
}
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 (!hasValue()) {
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) == 0x00000001)) {
output.writeBytes(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, collation_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, collation_);
}
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.MysqlxDatatypes.Scalar.String)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String other = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String) obj;
boolean result = true;
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && (hasCollation() == other.hasCollation());
if (hasCollation()) {
result = result && (getCollation()
== other.getCollation());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasCollation()) {
hash = (37 * hash) + COLLATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCollation());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String 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.MysqlxDatatypes.Scalar.String prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* a string with a charset/collation
*
*
* Protobuf type {@code Mysqlx.Datatypes.Scalar.String}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Datatypes.Scalar.String)
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_String_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_String_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.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();
value_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
collation_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_String_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String build() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String buildPartial() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String result = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.collation_ = collation_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String other) {
if (other == com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance()) return this;
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasCollation()) {
setCollation(other.getCollation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasValue()) {
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.MysqlxDatatypes.Scalar.String parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes value = 1;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* required bytes value = 1;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
* required bytes value = 1;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private long collation_ ;
/**
* optional uint64 collation = 2;
*/
public boolean hasCollation() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 collation = 2;
*/
public long getCollation() {
return collation_;
}
/**
* optional uint64 collation = 2;
*/
public Builder setCollation(long value) {
bitField0_ |= 0x00000002;
collation_ = value;
onChanged();
return this;
}
/**
* optional uint64 collation = 2;
*/
public Builder clearCollation() {
bitField0_ = (bitField0_ & ~0x00000002);
collation_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Datatypes.Scalar.String)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar.String)
private static final com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String();
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public String parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new String(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.MysqlxDatatypes.Scalar.String getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OctetsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Datatypes.Scalar.Octets)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes value = 1;
*/
boolean hasValue();
/**
* required bytes value = 1;
*/
com.google.protobuf.ByteString getValue();
/**
* optional uint32 content_type = 2;
*/
boolean hasContentType();
/**
* optional uint32 content_type = 2;
*/
int getContentType();
}
/**
*
* an opaque octet sequence, with an optional content_type
* See ``Mysqlx.Resultset.ContentType_BYTES`` for list of known values.
*
*
* Protobuf type {@code Mysqlx.Datatypes.Scalar.Octets}
*/
public static final class Octets extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Scalar.Octets)
OctetsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Octets.newBuilder() to construct.
private Octets(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Octets() {
value_ = com.google.protobuf.ByteString.EMPTY;
contentType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Octets(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
bitField0_ |= 0x00000001;
value_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
contentType_ = input.readUInt32();
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.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_Octets_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_Octets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* required bytes value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes value = 1;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int CONTENT_TYPE_FIELD_NUMBER = 2;
private int contentType_;
/**
* optional uint32 content_type = 2;
*/
public boolean hasContentType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 content_type = 2;
*/
public int getContentType() {
return contentType_;
}
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 (!hasValue()) {
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) == 0x00000001)) {
output.writeBytes(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, contentType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, contentType_);
}
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.MysqlxDatatypes.Scalar.Octets)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets other = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets) obj;
boolean result = true;
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && (hasContentType() == other.hasContentType());
if (hasContentType()) {
result = result && (getContentType()
== other.getContentType());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasContentType()) {
hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getContentType();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets 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.MysqlxDatatypes.Scalar.Octets 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;
}
/**
*
* an opaque octet sequence, with an optional content_type
* See ``Mysqlx.Resultset.ContentType_BYTES`` for list of known values.
*
*
* Protobuf type {@code Mysqlx.Datatypes.Scalar.Octets}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Datatypes.Scalar.Octets)
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_Octets_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_Octets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.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();
value_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
contentType_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_Octets_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets build() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets buildPartial() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets result = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.contentType_ = contentType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets other) {
if (other == com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance()) return this;
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasContentType()) {
setContentType(other.getContentType());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasValue()) {
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.MysqlxDatatypes.Scalar.Octets parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes value = 1;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* required bytes value = 1;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
* required bytes value = 1;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private int contentType_ ;
/**
* optional uint32 content_type = 2;
*/
public boolean hasContentType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 content_type = 2;
*/
public int getContentType() {
return contentType_;
}
/**
* optional uint32 content_type = 2;
*/
public Builder setContentType(int value) {
bitField0_ |= 0x00000002;
contentType_ = value;
onChanged();
return this;
}
/**
* optional uint32 content_type = 2;
*/
public Builder clearContentType() {
bitField0_ = (bitField0_ & ~0x00000002);
contentType_ = 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.Datatypes.Scalar.Octets)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar.Octets)
private static final com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets();
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Octets parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Octets(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.MysqlxDatatypes.Scalar.Octets getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type getType() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type result = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.valueOf(type_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.V_SINT : result;
}
public static final int V_SIGNED_INT_FIELD_NUMBER = 2;
private long vSignedInt_;
/**
* optional sint64 v_signed_int = 2;
*/
public boolean hasVSignedInt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint64 v_signed_int = 2;
*/
public long getVSignedInt() {
return vSignedInt_;
}
public static final int V_UNSIGNED_INT_FIELD_NUMBER = 3;
private long vUnsignedInt_;
/**
* optional uint64 v_unsigned_int = 3;
*/
public boolean hasVUnsignedInt() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 v_unsigned_int = 3;
*/
public long getVUnsignedInt() {
return vUnsignedInt_;
}
public static final int V_OCTETS_FIELD_NUMBER = 5;
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets vOctets_;
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public boolean hasVOctets() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getVOctets() {
return vOctets_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance() : vOctets_;
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder getVOctetsOrBuilder() {
return vOctets_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance() : vOctets_;
}
public static final int V_DOUBLE_FIELD_NUMBER = 6;
private double vDouble_;
/**
* optional double v_double = 6;
*/
public boolean hasVDouble() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional double v_double = 6;
*/
public double getVDouble() {
return vDouble_;
}
public static final int V_FLOAT_FIELD_NUMBER = 7;
private float vFloat_;
/**
* optional float v_float = 7;
*/
public boolean hasVFloat() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional float v_float = 7;
*/
public float getVFloat() {
return vFloat_;
}
public static final int V_BOOL_FIELD_NUMBER = 8;
private boolean vBool_;
/**
* optional bool v_bool = 8;
*/
public boolean hasVBool() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bool v_bool = 8;
*/
public boolean getVBool() {
return vBool_;
}
public static final int V_STRING_FIELD_NUMBER = 9;
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String vString_;
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public boolean hasVString() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String getVString() {
return vString_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance() : vString_;
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder getVStringOrBuilder() {
return vString_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance() : vString_;
}
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 (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (hasVOctets()) {
if (!getVOctets().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasVString()) {
if (!getVString().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) == 0x00000001)) {
output.writeEnum(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt64(2, vSignedInt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, vUnsignedInt_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(5, getVOctets());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeDouble(6, vDouble_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeFloat(7, vFloat_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(8, vBool_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(9, getVString());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(2, vSignedInt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, vUnsignedInt_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getVOctets());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, vDouble_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, vFloat_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, vBool_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getVString());
}
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.MysqlxDatatypes.Scalar)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar other = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && type_ == other.type_;
}
result = result && (hasVSignedInt() == other.hasVSignedInt());
if (hasVSignedInt()) {
result = result && (getVSignedInt()
== other.getVSignedInt());
}
result = result && (hasVUnsignedInt() == other.hasVUnsignedInt());
if (hasVUnsignedInt()) {
result = result && (getVUnsignedInt()
== other.getVUnsignedInt());
}
result = result && (hasVOctets() == other.hasVOctets());
if (hasVOctets()) {
result = result && getVOctets()
.equals(other.getVOctets());
}
result = result && (hasVDouble() == other.hasVDouble());
if (hasVDouble()) {
result = result && (
java.lang.Double.doubleToLongBits(getVDouble())
== java.lang.Double.doubleToLongBits(
other.getVDouble()));
}
result = result && (hasVFloat() == other.hasVFloat());
if (hasVFloat()) {
result = result && (
java.lang.Float.floatToIntBits(getVFloat())
== java.lang.Float.floatToIntBits(
other.getVFloat()));
}
result = result && (hasVBool() == other.hasVBool());
if (hasVBool()) {
result = result && (getVBool()
== other.getVBool());
}
result = result && (hasVString() == other.hasVString());
if (hasVString()) {
result = result && getVString()
.equals(other.getVString());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasVSignedInt()) {
hash = (37 * hash) + V_SIGNED_INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVSignedInt());
}
if (hasVUnsignedInt()) {
hash = (37 * hash) + V_UNSIGNED_INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVUnsignedInt());
}
if (hasVOctets()) {
hash = (37 * hash) + V_OCTETS_FIELD_NUMBER;
hash = (53 * hash) + getVOctets().hashCode();
}
if (hasVDouble()) {
hash = (37 * hash) + V_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVDouble()));
}
if (hasVFloat()) {
hash = (37 * hash) + V_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getVFloat());
}
if (hasVBool()) {
hash = (37 * hash) + V_BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getVBool());
}
if (hasVString()) {
hash = (37 * hash) + V_STRING_FIELD_NUMBER;
hash = (53 * hash) + getVString().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar 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.MysqlxDatatypes.Scalar prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* a scalar
*
*
* Protobuf type {@code Mysqlx.Datatypes.Scalar}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Datatypes.Scalar)
com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVOctetsFieldBuilder();
getVStringFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
vSignedInt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
vUnsignedInt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
if (vOctetsBuilder_ == null) {
vOctets_ = null;
} else {
vOctetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
vDouble_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
vFloat_ = 0F;
bitField0_ = (bitField0_ & ~0x00000020);
vBool_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
if (vStringBuilder_ == null) {
vString_ = null;
} else {
vStringBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar build() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar buildPartial() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar result = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.vSignedInt_ = vSignedInt_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.vUnsignedInt_ = vUnsignedInt_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (vOctetsBuilder_ == null) {
result.vOctets_ = vOctets_;
} else {
result.vOctets_ = vOctetsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.vDouble_ = vDouble_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.vFloat_ = vFloat_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.vBool_ = vBool_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (vStringBuilder_ == null) {
result.vString_ = vString_;
} else {
result.vString_ = vStringBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar other) {
if (other == com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasVSignedInt()) {
setVSignedInt(other.getVSignedInt());
}
if (other.hasVUnsignedInt()) {
setVUnsignedInt(other.getVUnsignedInt());
}
if (other.hasVOctets()) {
mergeVOctets(other.getVOctets());
}
if (other.hasVDouble()) {
setVDouble(other.getVDouble());
}
if (other.hasVFloat()) {
setVFloat(other.getVFloat());
}
if (other.hasVBool()) {
setVBool(other.getVBool());
}
if (other.hasVString()) {
mergeVString(other.getVString());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
if (hasVOctets()) {
if (!getVOctets().isInitialized()) {
return false;
}
}
if (hasVString()) {
if (!getVString().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.MysqlxDatatypes.Scalar parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 1;
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type getType() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type result = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.valueOf(type_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.V_SINT : result;
}
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public Builder setType(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 1;
onChanged();
return this;
}
private long vSignedInt_ ;
/**
* optional sint64 v_signed_int = 2;
*/
public boolean hasVSignedInt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint64 v_signed_int = 2;
*/
public long getVSignedInt() {
return vSignedInt_;
}
/**
* optional sint64 v_signed_int = 2;
*/
public Builder setVSignedInt(long value) {
bitField0_ |= 0x00000002;
vSignedInt_ = value;
onChanged();
return this;
}
/**
* optional sint64 v_signed_int = 2;
*/
public Builder clearVSignedInt() {
bitField0_ = (bitField0_ & ~0x00000002);
vSignedInt_ = 0L;
onChanged();
return this;
}
private long vUnsignedInt_ ;
/**
* optional uint64 v_unsigned_int = 3;
*/
public boolean hasVUnsignedInt() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 v_unsigned_int = 3;
*/
public long getVUnsignedInt() {
return vUnsignedInt_;
}
/**
* optional uint64 v_unsigned_int = 3;
*/
public Builder setVUnsignedInt(long value) {
bitField0_ |= 0x00000004;
vUnsignedInt_ = value;
onChanged();
return this;
}
/**
* optional uint64 v_unsigned_int = 3;
*/
public Builder clearVUnsignedInt() {
bitField0_ = (bitField0_ & ~0x00000004);
vUnsignedInt_ = 0L;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets vOctets_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder> vOctetsBuilder_;
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public boolean hasVOctets() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getVOctets() {
if (vOctetsBuilder_ == null) {
return vOctets_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance() : vOctets_;
} else {
return vOctetsBuilder_.getMessage();
}
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public Builder setVOctets(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets value) {
if (vOctetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
vOctets_ = value;
onChanged();
} else {
vOctetsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public Builder setVOctets(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder builderForValue) {
if (vOctetsBuilder_ == null) {
vOctets_ = builderForValue.build();
onChanged();
} else {
vOctetsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public Builder mergeVOctets(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets value) {
if (vOctetsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
vOctets_ != null &&
vOctets_ != com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance()) {
vOctets_ =
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.newBuilder(vOctets_).mergeFrom(value).buildPartial();
} else {
vOctets_ = value;
}
onChanged();
} else {
vOctetsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public Builder clearVOctets() {
if (vOctetsBuilder_ == null) {
vOctets_ = null;
onChanged();
} else {
vOctetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder getVOctetsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getVOctetsFieldBuilder().getBuilder();
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder getVOctetsOrBuilder() {
if (vOctetsBuilder_ != null) {
return vOctetsBuilder_.getMessageOrBuilder();
} else {
return vOctets_ == null ?
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance() : vOctets_;
}
}
/**
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder>
getVOctetsFieldBuilder() {
if (vOctetsBuilder_ == null) {
vOctetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder>(
getVOctets(),
getParentForChildren(),
isClean());
vOctets_ = null;
}
return vOctetsBuilder_;
}
private double vDouble_ ;
/**
* optional double v_double = 6;
*/
public boolean hasVDouble() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional double v_double = 6;
*/
public double getVDouble() {
return vDouble_;
}
/**
* optional double v_double = 6;
*/
public Builder setVDouble(double value) {
bitField0_ |= 0x00000010;
vDouble_ = value;
onChanged();
return this;
}
/**
* optional double v_double = 6;
*/
public Builder clearVDouble() {
bitField0_ = (bitField0_ & ~0x00000010);
vDouble_ = 0D;
onChanged();
return this;
}
private float vFloat_ ;
/**
* optional float v_float = 7;
*/
public boolean hasVFloat() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional float v_float = 7;
*/
public float getVFloat() {
return vFloat_;
}
/**
* optional float v_float = 7;
*/
public Builder setVFloat(float value) {
bitField0_ |= 0x00000020;
vFloat_ = value;
onChanged();
return this;
}
/**
* optional float v_float = 7;
*/
public Builder clearVFloat() {
bitField0_ = (bitField0_ & ~0x00000020);
vFloat_ = 0F;
onChanged();
return this;
}
private boolean vBool_ ;
/**
* optional bool v_bool = 8;
*/
public boolean hasVBool() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bool v_bool = 8;
*/
public boolean getVBool() {
return vBool_;
}
/**
* optional bool v_bool = 8;
*/
public Builder setVBool(boolean value) {
bitField0_ |= 0x00000040;
vBool_ = value;
onChanged();
return this;
}
/**
* optional bool v_bool = 8;
*/
public Builder clearVBool() {
bitField0_ = (bitField0_ & ~0x00000040);
vBool_ = false;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String vString_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder> vStringBuilder_;
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public boolean hasVString() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String getVString() {
if (vStringBuilder_ == null) {
return vString_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance() : vString_;
} else {
return vStringBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public Builder setVString(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String value) {
if (vStringBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
vString_ = value;
onChanged();
} else {
vStringBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public Builder setVString(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder builderForValue) {
if (vStringBuilder_ == null) {
vString_ = builderForValue.build();
onChanged();
} else {
vStringBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public Builder mergeVString(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String value) {
if (vStringBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
vString_ != null &&
vString_ != com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance()) {
vString_ =
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.newBuilder(vString_).mergeFrom(value).buildPartial();
} else {
vString_ = value;
}
onChanged();
} else {
vStringBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public Builder clearVString() {
if (vStringBuilder_ == null) {
vString_ = null;
onChanged();
} else {
vStringBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder getVStringBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getVStringFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder getVStringOrBuilder() {
if (vStringBuilder_ != null) {
return vStringBuilder_.getMessageOrBuilder();
} else {
return vString_ == null ?
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance() : vString_;
}
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder>
getVStringFieldBuilder() {
if (vStringBuilder_ == null) {
vStringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder>(
getVString(),
getParentForChildren(),
isClean());
vString_ = null;
}
return vStringBuilder_;
}
@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.Datatypes.Scalar)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar)
private static final com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar();
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Scalar parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Scalar(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.MysqlxDatatypes.Scalar getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Datatypes.Object)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
java.util.List
getFldList();
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField getFld(int index);
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
int getFldCount();
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
java.util.List
getFldOrBuilderList();
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder getFldOrBuilder(
int index);
}
/**
*
* a object
*
*
* Protobuf type {@code Mysqlx.Datatypes.Object}
*/
public static final class Object extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Object)
ObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use Object.newBuilder() to construct.
private Object(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Object() {
fld_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Object(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fld_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fld_.add(
input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fld_ = java.util.Collections.unmodifiableList(fld_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.Builder.class);
}
public interface ObjectFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Datatypes.Object.ObjectField)
com.google.protobuf.MessageOrBuilder {
/**
* required string key = 1;
*/
boolean hasKey();
/**
* required string key = 1;
*/
java.lang.String getKey();
/**
* required string key = 1;
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
boolean hasValue();
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any getValue();
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Object.ObjectField}
*/
public static final class ObjectField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Object.ObjectField)
ObjectFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectField.newBuilder() to construct.
private ObjectField(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ObjectField() {
key_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ObjectField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
key_ = bs;
break;
}
case 18: {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_ObjectField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_ObjectField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* required string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Any value_;
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Any getValue() {
return value_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.getDefaultInstance() : value_;
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder getValueOrBuilder() {
return value_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
if (!getValue().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getValue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField other = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField) obj;
boolean result = true;
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && getKey()
.equals(other.getKey());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField 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.MysqlxDatatypes.Object.ObjectField 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.Datatypes.Object.ObjectField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Datatypes.Object.ObjectField)
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_ObjectField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_ObjectField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (valueBuilder_ == null) {
value_ = null;
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_ObjectField_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField build() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField buildPartial() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField result = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField other) {
if (other == com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
if (!getValue().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Any value_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any, com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder> valueBuilder_;
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Any getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public Builder setValue(com.mysql.cj.x.protobuf.MysqlxDatatypes.Any value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public Builder setValue(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public Builder mergeValue(com.mysql.cj.x.protobuf.MysqlxDatatypes.Any value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
value_ != null &&
value_ != com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.getDefaultInstance()) {
value_ =
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.getDefaultInstance() : value_;
}
}
/**
* required .Mysqlx.Datatypes.Any value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any, com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any, com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Datatypes.Object.ObjectField)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Object.ObjectField)
private static final com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField();
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ObjectField parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ObjectField(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.MysqlxDatatypes.Object.ObjectField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FLD_FIELD_NUMBER = 1;
private java.util.List fld_;
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public java.util.List getFldList() {
return fld_;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public java.util.List
getFldOrBuilderList() {
return fld_;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public int getFldCount() {
return fld_.size();
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField getFld(int index) {
return fld_.get(index);
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder getFldOrBuilder(
int index) {
return fld_.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 < getFldCount(); i++) {
if (!getFld(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < fld_.size(); i++) {
output.writeMessage(1, fld_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fld_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fld_.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.MysqlxDatatypes.Object)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object other = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Object) obj;
boolean result = true;
result = result && getFldList()
.equals(other.getFldList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFldCount() > 0) {
hash = (37 * hash) + FLD_FIELD_NUMBER;
hash = (53 * hash) + getFldList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object 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.MysqlxDatatypes.Object prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* a object
*
*
* Protobuf type {@code Mysqlx.Datatypes.Object}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Datatypes.Object)
com.mysql.cj.x.protobuf.MysqlxDatatypes.ObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.class, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFldFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (fldBuilder_ == null) {
fld_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fldBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Object_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object build() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object buildPartial() {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object result = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Object(this);
int from_bitField0_ = bitField0_;
if (fldBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
fld_ = java.util.Collections.unmodifiableList(fld_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fld_ = fld_;
} else {
result.fld_ = fldBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxDatatypes.Object) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxDatatypes.Object)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxDatatypes.Object other) {
if (other == com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.getDefaultInstance()) return this;
if (fldBuilder_ == null) {
if (!other.fld_.isEmpty()) {
if (fld_.isEmpty()) {
fld_ = other.fld_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFldIsMutable();
fld_.addAll(other.fld_);
}
onChanged();
}
} else {
if (!other.fld_.isEmpty()) {
if (fldBuilder_.isEmpty()) {
fldBuilder_.dispose();
fldBuilder_ = null;
fld_ = other.fld_;
bitField0_ = (bitField0_ & ~0x00000001);
fldBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFldFieldBuilder() : null;
} else {
fldBuilder_.addAllMessages(other.fld_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getFldCount(); i++) {
if (!getFld(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.MysqlxDatatypes.Object parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxDatatypes.Object) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fld_ =
java.util.Collections.emptyList();
private void ensureFldIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
fld_ = new java.util.ArrayList(fld_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder> fldBuilder_;
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public java.util.List getFldList() {
if (fldBuilder_ == null) {
return java.util.Collections.unmodifiableList(fld_);
} else {
return fldBuilder_.getMessageList();
}
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public int getFldCount() {
if (fldBuilder_ == null) {
return fld_.size();
} else {
return fldBuilder_.getCount();
}
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField getFld(int index) {
if (fldBuilder_ == null) {
return fld_.get(index);
} else {
return fldBuilder_.getMessage(index);
}
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder setFld(
int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField value) {
if (fldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFldIsMutable();
fld_.set(index, value);
onChanged();
} else {
fldBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder setFld(
int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder builderForValue) {
if (fldBuilder_ == null) {
ensureFldIsMutable();
fld_.set(index, builderForValue.build());
onChanged();
} else {
fldBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder addFld(com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField value) {
if (fldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFldIsMutable();
fld_.add(value);
onChanged();
} else {
fldBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder addFld(
int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField value) {
if (fldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFldIsMutable();
fld_.add(index, value);
onChanged();
} else {
fldBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder addFld(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder builderForValue) {
if (fldBuilder_ == null) {
ensureFldIsMutable();
fld_.add(builderForValue.build());
onChanged();
} else {
fldBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder addFld(
int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder builderForValue) {
if (fldBuilder_ == null) {
ensureFldIsMutable();
fld_.add(index, builderForValue.build());
onChanged();
} else {
fldBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder addAllFld(
java.lang.Iterable values) {
if (fldBuilder_ == null) {
ensureFldIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fld_);
onChanged();
} else {
fldBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder clearFld() {
if (fldBuilder_ == null) {
fld_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fldBuilder_.clear();
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public Builder removeFld(int index) {
if (fldBuilder_ == null) {
ensureFldIsMutable();
fld_.remove(index);
onChanged();
} else {
fldBuilder_.remove(index);
}
return this;
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder getFldBuilder(
int index) {
return getFldFieldBuilder().getBuilder(index);
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder getFldOrBuilder(
int index) {
if (fldBuilder_ == null) {
return fld_.get(index); } else {
return fldBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public java.util.List
getFldOrBuilderList() {
if (fldBuilder_ != null) {
return fldBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fld_);
}
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder addFldBuilder() {
return getFldFieldBuilder().addBuilder(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.getDefaultInstance());
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder addFldBuilder(
int index) {
return getFldFieldBuilder().addBuilder(
index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.getDefaultInstance());
}
/**
* repeated .Mysqlx.Datatypes.Object.ObjectField fld = 1;
*/
public java.util.List
getFldBuilderList() {
return getFldFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder>
getFldFieldBuilder() {
if (fldBuilder_ == null) {
fldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectFieldOrBuilder>(
fld_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
fld_ = null;
}
return fldBuilder_;
}
@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.Datatypes.Object)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Object)
private static final com.mysql.cj.x.protobuf.MysqlxDatatypes.Object DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxDatatypes.Object();
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Object getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser