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, 2017, 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
public final class MysqlxDatatypes {
private MysqlxDatatypes() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry 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();
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
boolean hasVOctets();
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getVOctets();
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
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();
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Scalar}
*
*
* a scalar
*
*/
public static final class Scalar extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Scalar)
ScalarOrBuilder {
// Use Scalar.newBuilder() to construct.
private Scalar(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Scalar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Scalar defaultInstance;
public static Scalar getDefaultInstance() {
return defaultInstance;
}
public Scalar getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@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 {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
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_ = value;
}
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
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;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Scalar parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Scalar(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code Mysqlx.Datatypes.Scalar.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* V_SINT = 1;
*/
V_SINT(0, 1),
/**
* V_UINT = 2;
*/
V_UINT(1, 2),
/**
* V_NULL = 3;
*/
V_NULL(2, 3),
/**
* V_OCTETS = 4;
*/
V_OCTETS(3, 4),
/**
* V_DOUBLE = 5;
*/
V_DOUBLE(4, 5),
/**
* V_FLOAT = 6;
*/
V_FLOAT(5, 6),
/**
* V_BOOL = 7;
*/
V_BOOL(6, 7),
/**
* V_STRING = 8;
*/
V_STRING(7, 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; }
public static Type valueOf(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 com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.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 index;
private final int value;
private Type(int index, int value) {
this.index = index;
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();
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Scalar.String}
*
*
* a string with a charset/collation
*
*/
public static final class String extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Scalar.String)
StringOrBuilder {
// Use String.newBuilder() to construct.
private String(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private String(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final String defaultInstance;
public static String getDefaultInstance() {
return defaultInstance;
}
public String getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@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 {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
value_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
collation_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
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;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public String parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new String(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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 void initFields() {
value_ = com.google.protobuf.ByteString.EMPTY;
collation_ = 0L;
}
private byte memoizedIsInitialized = -1;
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;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, collation_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, collation_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.mysql.cj.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Scalar.String}
*
*
* a string with a charset/collation
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
value_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
collation_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_String_descriptor;
}
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance();
}
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;
}
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;
}
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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasValue()) {
return false;
}
return true;
}
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;
} 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;
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Datatypes.Scalar.String)
}
static {
defaultInstance = new String(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar.String)
}
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();
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Scalar.Octets}
*
*
* an opaque octet sequence, with an optional content_type
* See ``Mysqlx.Resultset.ContentType_BYTES`` for list of known values.
*
*/
public static final class Octets extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Scalar.Octets)
OctetsOrBuilder {
// Use Octets.newBuilder() to construct.
private Octets(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Octets(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Octets defaultInstance;
public static Octets getDefaultInstance() {
return defaultInstance;
}
public Octets getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@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 {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
value_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
contentType_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
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;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Octets parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Octets(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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 void initFields() {
value_ = com.google.protobuf.ByteString.EMPTY;
contentType_ = 0;
}
private byte memoizedIsInitialized = -1;
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;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, contentType_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, contentType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.mysql.cj.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Scalar.Octets}
*
*
* an opaque octet sequence, with an optional content_type
* See ``Mysqlx.Resultset.ContentType_BYTES`` for list of known values.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
value_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
contentType_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_Octets_descriptor;
}
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance();
}
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;
}
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;
}
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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasValue()) {
return false;
}
return true;
}
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;
} 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;
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Datatypes.Scalar.Octets)
}
static {
defaultInstance = new Octets(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar.Octets)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type 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() {
return type_;
}
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_;
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public boolean hasVOctets() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getVOctets() {
return vOctets_;
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder getVOctetsOrBuilder() {
return 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_;
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.StringOrBuilder getVStringOrBuilder() {
return vString_;
}
private void initFields() {
type_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.V_SINT;
vSignedInt_ = 0L;
vUnsignedInt_ = 0L;
vOctets_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance();
vDouble_ = 0D;
vFloat_ = 0F;
vBool_ = false;
vString_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
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;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt64(2, vSignedInt_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, vUnsignedInt_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(5, vOctets_);
}
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, vString_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
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, vOctets_);
}
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, vString_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.mysql.cj.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Scalar}
*
*
* a scalar
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getVOctetsFieldBuilder();
getVStringFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.V_SINT;
bitField0_ = (bitField0_ & ~0x00000001);
vSignedInt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
vUnsignedInt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
if (vOctetsBuilder_ == null) {
vOctets_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance();
} 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_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance();
} else {
vStringBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.internal_static_Mysqlx_Datatypes_Scalar_descriptor;
}
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance();
}
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;
}
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;
}
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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
if (hasVOctets()) {
if (!getVOctets().isInitialized()) {
return false;
}
}
if (hasVString()) {
if (!getVString().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.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;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type type_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.V_SINT;
/**
* 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() {
return type_;
}
/**
* 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;
onChanged();
return this;
}
/**
* required .Mysqlx.Datatypes.Scalar.Type type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Type.V_SINT;
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_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
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_;
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public boolean hasVOctets() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets getVOctets() {
if (vOctetsBuilder_ == null) {
return vOctets_;
} else {
return vOctetsBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
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;
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
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;
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public Builder mergeVOctets(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets value) {
if (vOctetsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
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;
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public Builder clearVOctets() {
if (vOctetsBuilder_ == null) {
vOctets_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.getDefaultInstance();
onChanged();
} else {
vOctetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Octets.Builder getVOctetsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getVOctetsFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.OctetsOrBuilder getVOctetsOrBuilder() {
if (vOctetsBuilder_ != null) {
return vOctetsBuilder_.getMessageOrBuilder();
} else {
return vOctets_;
}
}
/**
* optional .Mysqlx.Datatypes.Scalar.Octets v_octets = 5;
*
*
* 4 is unused, was Null which doesn't have a storage anymore
*
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
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_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
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_;
} 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_ != 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_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.String.getDefaultInstance();
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_;
}
}
/**
* optional .Mysqlx.Datatypes.Scalar.String v_string = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
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_;
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Datatypes.Scalar)
}
static {
defaultInstance = new Scalar(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar)
}
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);
}
/**
* Protobuf type {@code Mysqlx.Datatypes.Object}
*
*
* a object
*
*/
public static final class Object extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Datatypes.Object)
ObjectOrBuilder {
// Use Object.newBuilder() to construct.
private Object(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Object(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Object defaultInstance;
public static Object getDefaultInstance() {
return defaultInstance;
}
public Object getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@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 {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fld_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fld_.add(input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Object.ObjectField.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
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;
}
protected com.google.protobuf.GeneratedMessage.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 static com.google.protobuf.Parser