PY-18029 Move the content of intellij.python.console module to intellij.python.community.impl and remove it

This commit is contained in:
Alexander Koshevoy
2018-08-22 23:16:40 +03:00
parent c01da75032
commit 3c714802b4
25 changed files with 7 additions and 25 deletions
@@ -0,0 +1,654 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)", date = "2018-08-07")
public class ArrayData implements org.apache.thrift.TBase<ArrayData, ArrayData._Fields>, java.io.Serializable, Cloneable, Comparable<ArrayData> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ArrayData");
private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("cols", org.apache.thrift.protocol.TType.I32, (short)2);
private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ArrayDataStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ArrayDataTupleSchemeFactory();
public int rows; // required
public int cols; // required
public java.util.List<java.util.List<java.lang.String>> data; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
ROWS((short)1, "rows"),
COLS((short)2, "cols"),
DATA((short)3, "data");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // ROWS
return ROWS;
case 2: // COLS
return COLS;
case 3: // DATA
return DATA;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __ROWS_ISSET_ID = 0;
private static final int __COLS_ISSET_ID = 1;
private byte __isset_bitfield = 0;
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.COLS, new org.apache.thrift.meta_data.FieldMetaData("cols", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ArrayData.class, metaDataMap);
}
public ArrayData() {
}
public ArrayData(
int rows,
int cols,
java.util.List<java.util.List<java.lang.String>> data)
{
this();
this.rows = rows;
setRowsIsSet(true);
this.cols = cols;
setColsIsSet(true);
this.data = data;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public ArrayData(ArrayData other) {
__isset_bitfield = other.__isset_bitfield;
this.rows = other.rows;
this.cols = other.cols;
if (other.isSetData()) {
java.util.List<java.util.List<java.lang.String>> __this__data = new java.util.ArrayList<java.util.List<java.lang.String>>(other.data.size());
for (java.util.List<java.lang.String> other_element : other.data) {
java.util.List<java.lang.String> __this__data_copy = new java.util.ArrayList<java.lang.String>(other_element);
__this__data.add(__this__data_copy);
}
this.data = __this__data;
}
}
public ArrayData deepCopy() {
return new ArrayData(this);
}
@Override
public void clear() {
setRowsIsSet(false);
this.rows = 0;
setColsIsSet(false);
this.cols = 0;
this.data = null;
}
public int getRows() {
return this.rows;
}
public ArrayData setRows(int rows) {
this.rows = rows;
setRowsIsSet(true);
return this;
}
public void unsetRows() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ROWS_ISSET_ID);
}
/** Returns true if field rows is set (has been assigned a value) and false otherwise */
public boolean isSetRows() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ROWS_ISSET_ID);
}
public void setRowsIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ROWS_ISSET_ID, value);
}
public int getCols() {
return this.cols;
}
public ArrayData setCols(int cols) {
this.cols = cols;
setColsIsSet(true);
return this;
}
public void unsetCols() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __COLS_ISSET_ID);
}
/** Returns true if field cols is set (has been assigned a value) and false otherwise */
public boolean isSetCols() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COLS_ISSET_ID);
}
public void setColsIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __COLS_ISSET_ID, value);
}
public int getDataSize() {
return (this.data == null) ? 0 : this.data.size();
}
public java.util.Iterator<java.util.List<java.lang.String>> getDataIterator() {
return (this.data == null) ? null : this.data.iterator();
}
public void addToData(java.util.List<java.lang.String> elem) {
if (this.data == null) {
this.data = new java.util.ArrayList<java.util.List<java.lang.String>>();
}
this.data.add(elem);
}
public java.util.List<java.util.List<java.lang.String>> getData() {
return this.data;
}
public ArrayData setData(java.util.List<java.util.List<java.lang.String>> data) {
this.data = data;
return this;
}
public void unsetData() {
this.data = null;
}
/** Returns true if field data is set (has been assigned a value) and false otherwise */
public boolean isSetData() {
return this.data != null;
}
public void setDataIsSet(boolean value) {
if (!value) {
this.data = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case ROWS:
if (value == null) {
unsetRows();
} else {
setRows((java.lang.Integer)value);
}
break;
case COLS:
if (value == null) {
unsetCols();
} else {
setCols((java.lang.Integer)value);
}
break;
case DATA:
if (value == null) {
unsetData();
} else {
setData((java.util.List<java.util.List<java.lang.String>>)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case ROWS:
return getRows();
case COLS:
return getCols();
case DATA:
return getData();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case ROWS:
return isSetRows();
case COLS:
return isSetCols();
case DATA:
return isSetData();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof ArrayData)
return this.equals((ArrayData)that);
return false;
}
public boolean equals(ArrayData that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_rows = true;
boolean that_present_rows = true;
if (this_present_rows || that_present_rows) {
if (!(this_present_rows && that_present_rows))
return false;
if (this.rows != that.rows)
return false;
}
boolean this_present_cols = true;
boolean that_present_cols = true;
if (this_present_cols || that_present_cols) {
if (!(this_present_cols && that_present_cols))
return false;
if (this.cols != that.cols)
return false;
}
boolean this_present_data = true && this.isSetData();
boolean that_present_data = true && that.isSetData();
if (this_present_data || that_present_data) {
if (!(this_present_data && that_present_data))
return false;
if (!this.data.equals(that.data))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + rows;
hashCode = hashCode * 8191 + cols;
hashCode = hashCode * 8191 + ((isSetData()) ? 131071 : 524287);
if (isSetData())
hashCode = hashCode * 8191 + data.hashCode();
return hashCode;
}
@Override
public int compareTo(ArrayData other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetRows()).compareTo(other.isSetRows());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRows()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetCols()).compareTo(other.isSetCols());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCols()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cols, other.cols);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetData()).compareTo(other.isSetData());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetData()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ArrayData(");
boolean first = true;
sb.append("rows:");
sb.append(this.rows);
first = false;
if (!first) sb.append(", ");
sb.append("cols:");
sb.append(this.cols);
first = false;
if (!first) sb.append(", ");
sb.append("data:");
if (this.data == null) {
sb.append("null");
} else {
sb.append(this.data);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class ArrayDataStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ArrayDataStandardScheme getScheme() {
return new ArrayDataStandardScheme();
}
}
private static class ArrayDataStandardScheme extends org.apache.thrift.scheme.StandardScheme<ArrayData> {
public void read(org.apache.thrift.protocol.TProtocol iprot, ArrayData struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // ROWS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.rows = iprot.readI32();
struct.setRowsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // COLS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.cols = iprot.readI32();
struct.setColsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // DATA
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
struct.data = new java.util.ArrayList<java.util.List<java.lang.String>>(_list16.size);
java.util.List<java.lang.String> _elem17;
for (int _i18 = 0; _i18 < _list16.size; ++_i18)
{
{
org.apache.thrift.protocol.TList _list19 = iprot.readListBegin();
_elem17 = new java.util.ArrayList<java.lang.String>(_list19.size);
java.lang.String _elem20;
for (int _i21 = 0; _i21 < _list19.size; ++_i21)
{
_elem20 = iprot.readString();
_elem17.add(_elem20);
}
iprot.readListEnd();
}
struct.data.add(_elem17);
}
iprot.readListEnd();
}
struct.setDataIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, ArrayData struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(ROWS_FIELD_DESC);
oprot.writeI32(struct.rows);
oprot.writeFieldEnd();
oprot.writeFieldBegin(COLS_FIELD_DESC);
oprot.writeI32(struct.cols);
oprot.writeFieldEnd();
if (struct.data != null) {
oprot.writeFieldBegin(DATA_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, struct.data.size()));
for (java.util.List<java.lang.String> _iter22 : struct.data)
{
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter22.size()));
for (java.lang.String _iter23 : _iter22)
{
oprot.writeString(_iter23);
}
oprot.writeListEnd();
}
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ArrayDataTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ArrayDataTupleScheme getScheme() {
return new ArrayDataTupleScheme();
}
}
private static class ArrayDataTupleScheme extends org.apache.thrift.scheme.TupleScheme<ArrayData> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ArrayData struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetRows()) {
optionals.set(0);
}
if (struct.isSetCols()) {
optionals.set(1);
}
if (struct.isSetData()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetRows()) {
oprot.writeI32(struct.rows);
}
if (struct.isSetCols()) {
oprot.writeI32(struct.cols);
}
if (struct.isSetData()) {
{
oprot.writeI32(struct.data.size());
for (java.util.List<java.lang.String> _iter24 : struct.data)
{
{
oprot.writeI32(_iter24.size());
for (java.lang.String _iter25 : _iter24)
{
oprot.writeString(_iter25);
}
}
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ArrayData struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.rows = iprot.readI32();
struct.setRowsIsSet(true);
}
if (incoming.get(1)) {
struct.cols = iprot.readI32();
struct.setColsIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list26 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32());
struct.data = new java.util.ArrayList<java.util.List<java.lang.String>>(_list26.size);
java.util.List<java.lang.String> _elem27;
for (int _i28 = 0; _i28 < _list26.size; ++_i28)
{
{
org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
_elem27 = new java.util.ArrayList<java.lang.String>(_list29.size);
java.lang.String _elem30;
for (int _i31 = 0; _i31 < _list29.size; ++_i31)
{
_elem30 = iprot.readString();
_elem27.add(_elem30);
}
}
struct.data.add(_elem27);
}
}
struct.setDataIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
@@ -0,0 +1,584 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)", date = "2018-08-07")
public class ArrayHeaders implements org.apache.thrift.TBase<ArrayHeaders, ArrayHeaders._Fields>, java.io.Serializable, Cloneable, Comparable<ArrayHeaders> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ArrayHeaders");
private static final org.apache.thrift.protocol.TField COL_HEADERS_FIELD_DESC = new org.apache.thrift.protocol.TField("colHeaders", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField ROW_HEADERS_FIELD_DESC = new org.apache.thrift.protocol.TField("rowHeaders", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ArrayHeadersStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ArrayHeadersTupleSchemeFactory();
public java.util.List<ColHeader> colHeaders; // required
public java.util.List<RowHeader> rowHeaders; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
COL_HEADERS((short)1, "colHeaders"),
ROW_HEADERS((short)2, "rowHeaders");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // COL_HEADERS
return COL_HEADERS;
case 2: // ROW_HEADERS
return ROW_HEADERS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.COL_HEADERS, new org.apache.thrift.meta_data.FieldMetaData("colHeaders", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColHeader.class))));
tmpMap.put(_Fields.ROW_HEADERS, new org.apache.thrift.meta_data.FieldMetaData("rowHeaders", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RowHeader.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ArrayHeaders.class, metaDataMap);
}
public ArrayHeaders() {
}
public ArrayHeaders(
java.util.List<ColHeader> colHeaders,
java.util.List<RowHeader> rowHeaders)
{
this();
this.colHeaders = colHeaders;
this.rowHeaders = rowHeaders;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public ArrayHeaders(ArrayHeaders other) {
if (other.isSetColHeaders()) {
java.util.List<ColHeader> __this__colHeaders = new java.util.ArrayList<ColHeader>(other.colHeaders.size());
for (ColHeader other_element : other.colHeaders) {
__this__colHeaders.add(new ColHeader(other_element));
}
this.colHeaders = __this__colHeaders;
}
if (other.isSetRowHeaders()) {
java.util.List<RowHeader> __this__rowHeaders = new java.util.ArrayList<RowHeader>(other.rowHeaders.size());
for (RowHeader other_element : other.rowHeaders) {
__this__rowHeaders.add(new RowHeader(other_element));
}
this.rowHeaders = __this__rowHeaders;
}
}
public ArrayHeaders deepCopy() {
return new ArrayHeaders(this);
}
@Override
public void clear() {
this.colHeaders = null;
this.rowHeaders = null;
}
public int getColHeadersSize() {
return (this.colHeaders == null) ? 0 : this.colHeaders.size();
}
public java.util.Iterator<ColHeader> getColHeadersIterator() {
return (this.colHeaders == null) ? null : this.colHeaders.iterator();
}
public void addToColHeaders(ColHeader elem) {
if (this.colHeaders == null) {
this.colHeaders = new java.util.ArrayList<ColHeader>();
}
this.colHeaders.add(elem);
}
public java.util.List<ColHeader> getColHeaders() {
return this.colHeaders;
}
public ArrayHeaders setColHeaders(java.util.List<ColHeader> colHeaders) {
this.colHeaders = colHeaders;
return this;
}
public void unsetColHeaders() {
this.colHeaders = null;
}
/** Returns true if field colHeaders is set (has been assigned a value) and false otherwise */
public boolean isSetColHeaders() {
return this.colHeaders != null;
}
public void setColHeadersIsSet(boolean value) {
if (!value) {
this.colHeaders = null;
}
}
public int getRowHeadersSize() {
return (this.rowHeaders == null) ? 0 : this.rowHeaders.size();
}
public java.util.Iterator<RowHeader> getRowHeadersIterator() {
return (this.rowHeaders == null) ? null : this.rowHeaders.iterator();
}
public void addToRowHeaders(RowHeader elem) {
if (this.rowHeaders == null) {
this.rowHeaders = new java.util.ArrayList<RowHeader>();
}
this.rowHeaders.add(elem);
}
public java.util.List<RowHeader> getRowHeaders() {
return this.rowHeaders;
}
public ArrayHeaders setRowHeaders(java.util.List<RowHeader> rowHeaders) {
this.rowHeaders = rowHeaders;
return this;
}
public void unsetRowHeaders() {
this.rowHeaders = null;
}
/** Returns true if field rowHeaders is set (has been assigned a value) and false otherwise */
public boolean isSetRowHeaders() {
return this.rowHeaders != null;
}
public void setRowHeadersIsSet(boolean value) {
if (!value) {
this.rowHeaders = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case COL_HEADERS:
if (value == null) {
unsetColHeaders();
} else {
setColHeaders((java.util.List<ColHeader>)value);
}
break;
case ROW_HEADERS:
if (value == null) {
unsetRowHeaders();
} else {
setRowHeaders((java.util.List<RowHeader>)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case COL_HEADERS:
return getColHeaders();
case ROW_HEADERS:
return getRowHeaders();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case COL_HEADERS:
return isSetColHeaders();
case ROW_HEADERS:
return isSetRowHeaders();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof ArrayHeaders)
return this.equals((ArrayHeaders)that);
return false;
}
public boolean equals(ArrayHeaders that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_colHeaders = true && this.isSetColHeaders();
boolean that_present_colHeaders = true && that.isSetColHeaders();
if (this_present_colHeaders || that_present_colHeaders) {
if (!(this_present_colHeaders && that_present_colHeaders))
return false;
if (!this.colHeaders.equals(that.colHeaders))
return false;
}
boolean this_present_rowHeaders = true && this.isSetRowHeaders();
boolean that_present_rowHeaders = true && that.isSetRowHeaders();
if (this_present_rowHeaders || that_present_rowHeaders) {
if (!(this_present_rowHeaders && that_present_rowHeaders))
return false;
if (!this.rowHeaders.equals(that.rowHeaders))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetColHeaders()) ? 131071 : 524287);
if (isSetColHeaders())
hashCode = hashCode * 8191 + colHeaders.hashCode();
hashCode = hashCode * 8191 + ((isSetRowHeaders()) ? 131071 : 524287);
if (isSetRowHeaders())
hashCode = hashCode * 8191 + rowHeaders.hashCode();
return hashCode;
}
@Override
public int compareTo(ArrayHeaders other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetColHeaders()).compareTo(other.isSetColHeaders());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetColHeaders()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colHeaders, other.colHeaders);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetRowHeaders()).compareTo(other.isSetRowHeaders());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRowHeaders()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowHeaders, other.rowHeaders);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ArrayHeaders(");
boolean first = true;
sb.append("colHeaders:");
if (this.colHeaders == null) {
sb.append("null");
} else {
sb.append(this.colHeaders);
}
first = false;
if (!first) sb.append(", ");
sb.append("rowHeaders:");
if (this.rowHeaders == null) {
sb.append("null");
} else {
sb.append(this.rowHeaders);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class ArrayHeadersStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ArrayHeadersStandardScheme getScheme() {
return new ArrayHeadersStandardScheme();
}
}
private static class ArrayHeadersStandardScheme extends org.apache.thrift.scheme.StandardScheme<ArrayHeaders> {
public void read(org.apache.thrift.protocol.TProtocol iprot, ArrayHeaders struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // COL_HEADERS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
struct.colHeaders = new java.util.ArrayList<ColHeader>(_list0.size);
ColHeader _elem1;
for (int _i2 = 0; _i2 < _list0.size; ++_i2)
{
_elem1 = new ColHeader();
_elem1.read(iprot);
struct.colHeaders.add(_elem1);
}
iprot.readListEnd();
}
struct.setColHeadersIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // ROW_HEADERS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
struct.rowHeaders = new java.util.ArrayList<RowHeader>(_list3.size);
RowHeader _elem4;
for (int _i5 = 0; _i5 < _list3.size; ++_i5)
{
_elem4 = new RowHeader();
_elem4.read(iprot);
struct.rowHeaders.add(_elem4);
}
iprot.readListEnd();
}
struct.setRowHeadersIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, ArrayHeaders struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.colHeaders != null) {
oprot.writeFieldBegin(COL_HEADERS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colHeaders.size()));
for (ColHeader _iter6 : struct.colHeaders)
{
_iter6.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.rowHeaders != null) {
oprot.writeFieldBegin(ROW_HEADERS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowHeaders.size()));
for (RowHeader _iter7 : struct.rowHeaders)
{
_iter7.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ArrayHeadersTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ArrayHeadersTupleScheme getScheme() {
return new ArrayHeadersTupleScheme();
}
}
private static class ArrayHeadersTupleScheme extends org.apache.thrift.scheme.TupleScheme<ArrayHeaders> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ArrayHeaders struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetColHeaders()) {
optionals.set(0);
}
if (struct.isSetRowHeaders()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetColHeaders()) {
{
oprot.writeI32(struct.colHeaders.size());
for (ColHeader _iter8 : struct.colHeaders)
{
_iter8.write(oprot);
}
}
}
if (struct.isSetRowHeaders()) {
{
oprot.writeI32(struct.rowHeaders.size());
for (RowHeader _iter9 : struct.rowHeaders)
{
_iter9.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ArrayHeaders struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list10 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.colHeaders = new java.util.ArrayList<ColHeader>(_list10.size);
ColHeader _elem11;
for (int _i12 = 0; _i12 < _list10.size; ++_i12)
{
_elem11 = new ColHeader();
_elem11.read(iprot);
struct.colHeaders.add(_elem11);
}
}
struct.setColHeadersIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.rowHeaders = new java.util.ArrayList<RowHeader>(_list13.size);
RowHeader _elem14;
for (int _i15 = 0; _i15 < _list13.size; ++_i15)
{
_elem14 = new RowHeader();
_elem14.read(iprot);
struct.rowHeaders.add(_elem14);
}
}
struct.setRowHeadersIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
@@ -0,0 +1,788 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)", date = "2018-08-07")
public class ColHeader implements org.apache.thrift.TBase<ColHeader, ColHeader._Fields>, java.io.Serializable, Cloneable, Comparable<ColHeader> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColHeader");
private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField FORMAT_FIELD_DESC = new org.apache.thrift.protocol.TField("format", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField MAX_FIELD_DESC = new org.apache.thrift.protocol.TField("max", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final org.apache.thrift.protocol.TField MIN_FIELD_DESC = new org.apache.thrift.protocol.TField("min", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ColHeaderStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ColHeaderTupleSchemeFactory();
public java.lang.String label; // required
public java.lang.String type; // required
public java.lang.String format; // required
public java.lang.String max; // required
public java.lang.String min; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
LABEL((short)1, "label"),
TYPE((short)2, "type"),
FORMAT((short)3, "format"),
MAX((short)4, "max"),
MIN((short)5, "min");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // LABEL
return LABEL;
case 2: // TYPE
return TYPE;
case 3: // FORMAT
return FORMAT;
case 4: // MAX
return MAX;
case 5: // MIN
return MIN;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FORMAT, new org.apache.thrift.meta_data.FieldMetaData("format", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.MAX, new org.apache.thrift.meta_data.FieldMetaData("max", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.MIN, new org.apache.thrift.meta_data.FieldMetaData("min", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColHeader.class, metaDataMap);
}
public ColHeader() {
}
public ColHeader(
java.lang.String label,
java.lang.String type,
java.lang.String format,
java.lang.String max,
java.lang.String min)
{
this();
this.label = label;
this.type = type;
this.format = format;
this.max = max;
this.min = min;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public ColHeader(ColHeader other) {
if (other.isSetLabel()) {
this.label = other.label;
}
if (other.isSetType()) {
this.type = other.type;
}
if (other.isSetFormat()) {
this.format = other.format;
}
if (other.isSetMax()) {
this.max = other.max;
}
if (other.isSetMin()) {
this.min = other.min;
}
}
public ColHeader deepCopy() {
return new ColHeader(this);
}
@Override
public void clear() {
this.label = null;
this.type = null;
this.format = null;
this.max = null;
this.min = null;
}
public java.lang.String getLabel() {
return this.label;
}
public ColHeader setLabel(java.lang.String label) {
this.label = label;
return this;
}
public void unsetLabel() {
this.label = null;
}
/** Returns true if field label is set (has been assigned a value) and false otherwise */
public boolean isSetLabel() {
return this.label != null;
}
public void setLabelIsSet(boolean value) {
if (!value) {
this.label = null;
}
}
public java.lang.String getType() {
return this.type;
}
public ColHeader setType(java.lang.String type) {
this.type = type;
return this;
}
public void unsetType() {
this.type = null;
}
/** Returns true if field type is set (has been assigned a value) and false otherwise */
public boolean isSetType() {
return this.type != null;
}
public void setTypeIsSet(boolean value) {
if (!value) {
this.type = null;
}
}
public java.lang.String getFormat() {
return this.format;
}
public ColHeader setFormat(java.lang.String format) {
this.format = format;
return this;
}
public void unsetFormat() {
this.format = null;
}
/** Returns true if field format is set (has been assigned a value) and false otherwise */
public boolean isSetFormat() {
return this.format != null;
}
public void setFormatIsSet(boolean value) {
if (!value) {
this.format = null;
}
}
public java.lang.String getMax() {
return this.max;
}
public ColHeader setMax(java.lang.String max) {
this.max = max;
return this;
}
public void unsetMax() {
this.max = null;
}
/** Returns true if field max is set (has been assigned a value) and false otherwise */
public boolean isSetMax() {
return this.max != null;
}
public void setMaxIsSet(boolean value) {
if (!value) {
this.max = null;
}
}
public java.lang.String getMin() {
return this.min;
}
public ColHeader setMin(java.lang.String min) {
this.min = min;
return this;
}
public void unsetMin() {
this.min = null;
}
/** Returns true if field min is set (has been assigned a value) and false otherwise */
public boolean isSetMin() {
return this.min != null;
}
public void setMinIsSet(boolean value) {
if (!value) {
this.min = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case LABEL:
if (value == null) {
unsetLabel();
} else {
setLabel((java.lang.String)value);
}
break;
case TYPE:
if (value == null) {
unsetType();
} else {
setType((java.lang.String)value);
}
break;
case FORMAT:
if (value == null) {
unsetFormat();
} else {
setFormat((java.lang.String)value);
}
break;
case MAX:
if (value == null) {
unsetMax();
} else {
setMax((java.lang.String)value);
}
break;
case MIN:
if (value == null) {
unsetMin();
} else {
setMin((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case LABEL:
return getLabel();
case TYPE:
return getType();
case FORMAT:
return getFormat();
case MAX:
return getMax();
case MIN:
return getMin();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case LABEL:
return isSetLabel();
case TYPE:
return isSetType();
case FORMAT:
return isSetFormat();
case MAX:
return isSetMax();
case MIN:
return isSetMin();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof ColHeader)
return this.equals((ColHeader)that);
return false;
}
public boolean equals(ColHeader that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_label = true && this.isSetLabel();
boolean that_present_label = true && that.isSetLabel();
if (this_present_label || that_present_label) {
if (!(this_present_label && that_present_label))
return false;
if (!this.label.equals(that.label))
return false;
}
boolean this_present_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
return false;
}
boolean this_present_format = true && this.isSetFormat();
boolean that_present_format = true && that.isSetFormat();
if (this_present_format || that_present_format) {
if (!(this_present_format && that_present_format))
return false;
if (!this.format.equals(that.format))
return false;
}
boolean this_present_max = true && this.isSetMax();
boolean that_present_max = true && that.isSetMax();
if (this_present_max || that_present_max) {
if (!(this_present_max && that_present_max))
return false;
if (!this.max.equals(that.max))
return false;
}
boolean this_present_min = true && this.isSetMin();
boolean that_present_min = true && that.isSetMin();
if (this_present_min || that_present_min) {
if (!(this_present_min && that_present_min))
return false;
if (!this.min.equals(that.min))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetLabel()) ? 131071 : 524287);
if (isSetLabel())
hashCode = hashCode * 8191 + label.hashCode();
hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
if (isSetType())
hashCode = hashCode * 8191 + type.hashCode();
hashCode = hashCode * 8191 + ((isSetFormat()) ? 131071 : 524287);
if (isSetFormat())
hashCode = hashCode * 8191 + format.hashCode();
hashCode = hashCode * 8191 + ((isSetMax()) ? 131071 : 524287);
if (isSetMax())
hashCode = hashCode * 8191 + max.hashCode();
hashCode = hashCode * 8191 + ((isSetMin()) ? 131071 : 524287);
if (isSetMin())
hashCode = hashCode * 8191 + min.hashCode();
return hashCode;
}
@Override
public int compareTo(ColHeader other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLabel()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetType()).compareTo(other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetFormat()).compareTo(other.isSetFormat());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFormat()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.format, other.format);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetMax()).compareTo(other.isSetMax());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMax()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max, other.max);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetMin()).compareTo(other.isSetMin());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMin()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min, other.min);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("ColHeader(");
boolean first = true;
sb.append("label:");
if (this.label == null) {
sb.append("null");
} else {
sb.append(this.label);
}
first = false;
if (!first) sb.append(", ");
sb.append("type:");
if (this.type == null) {
sb.append("null");
} else {
sb.append(this.type);
}
first = false;
if (!first) sb.append(", ");
sb.append("format:");
if (this.format == null) {
sb.append("null");
} else {
sb.append(this.format);
}
first = false;
if (!first) sb.append(", ");
sb.append("max:");
if (this.max == null) {
sb.append("null");
} else {
sb.append(this.max);
}
first = false;
if (!first) sb.append(", ");
sb.append("min:");
if (this.min == null) {
sb.append("null");
} else {
sb.append(this.min);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class ColHeaderStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ColHeaderStandardScheme getScheme() {
return new ColHeaderStandardScheme();
}
}
private static class ColHeaderStandardScheme extends org.apache.thrift.scheme.StandardScheme<ColHeader> {
public void read(org.apache.thrift.protocol.TProtocol iprot, ColHeader struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // LABEL
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.label = iprot.readString();
struct.setLabelIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.type = iprot.readString();
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // FORMAT
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.format = iprot.readString();
struct.setFormatIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // MAX
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.max = iprot.readString();
struct.setMaxIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // MIN
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.min = iprot.readString();
struct.setMinIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, ColHeader struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.label != null) {
oprot.writeFieldBegin(LABEL_FIELD_DESC);
oprot.writeString(struct.label);
oprot.writeFieldEnd();
}
if (struct.type != null) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeString(struct.type);
oprot.writeFieldEnd();
}
if (struct.format != null) {
oprot.writeFieldBegin(FORMAT_FIELD_DESC);
oprot.writeString(struct.format);
oprot.writeFieldEnd();
}
if (struct.max != null) {
oprot.writeFieldBegin(MAX_FIELD_DESC);
oprot.writeString(struct.max);
oprot.writeFieldEnd();
}
if (struct.min != null) {
oprot.writeFieldBegin(MIN_FIELD_DESC);
oprot.writeString(struct.min);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ColHeaderTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ColHeaderTupleScheme getScheme() {
return new ColHeaderTupleScheme();
}
}
private static class ColHeaderTupleScheme extends org.apache.thrift.scheme.TupleScheme<ColHeader> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ColHeader struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetLabel()) {
optionals.set(0);
}
if (struct.isSetType()) {
optionals.set(1);
}
if (struct.isSetFormat()) {
optionals.set(2);
}
if (struct.isSetMax()) {
optionals.set(3);
}
if (struct.isSetMin()) {
optionals.set(4);
}
oprot.writeBitSet(optionals, 5);
if (struct.isSetLabel()) {
oprot.writeString(struct.label);
}
if (struct.isSetType()) {
oprot.writeString(struct.type);
}
if (struct.isSetFormat()) {
oprot.writeString(struct.format);
}
if (struct.isSetMax()) {
oprot.writeString(struct.max);
}
if (struct.isSetMin()) {
oprot.writeString(struct.min);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ColHeader struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.label = iprot.readString();
struct.setLabelIsSet(true);
}
if (incoming.get(1)) {
struct.type = iprot.readString();
struct.setTypeIsSet(true);
}
if (incoming.get(2)) {
struct.format = iprot.readString();
struct.setFormatIsSet(true);
}
if (incoming.get(3)) {
struct.max = iprot.readString();
struct.setMaxIsSet(true);
}
if (incoming.get(4)) {
struct.min = iprot.readString();
struct.setMinIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
@@ -0,0 +1,761 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)", date = "2018-08-07")
public class CompletionOption implements org.apache.thrift.TBase<CompletionOption, CompletionOption._Fields>, java.io.Serializable, Cloneable, Comparable<CompletionOption> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CompletionOption");
private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField DOCUMENTATION_FIELD_DESC = new org.apache.thrift.protocol.TField("documentation", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField ARGUMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("arguments", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new CompletionOptionStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new CompletionOptionTupleSchemeFactory();
public java.lang.String name; // required
public java.lang.String documentation; // required
/**
* Originaly arguments come in a string `(<arg1>, <arg2>, ...)`.
*/
public java.util.List<java.lang.String> arguments; // required
/**
*
* @see CompletionOptionType
*/
public CompletionOptionType type; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
NAME((short)1, "name"),
DOCUMENTATION((short)2, "documentation"),
/**
* Originaly arguments come in a string `(<arg1>, <arg2>, ...)`.
*/
ARGUMENTS((short)3, "arguments"),
/**
*
* @see CompletionOptionType
*/
TYPE((short)4, "type");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // NAME
return NAME;
case 2: // DOCUMENTATION
return DOCUMENTATION;
case 3: // ARGUMENTS
return ARGUMENTS;
case 4: // TYPE
return TYPE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DOCUMENTATION, new org.apache.thrift.meta_data.FieldMetaData("documentation", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ARGUMENTS, new org.apache.thrift.meta_data.FieldMetaData("arguments", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CompletionOptionType.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CompletionOption.class, metaDataMap);
}
public CompletionOption() {
}
public CompletionOption(
java.lang.String name,
java.lang.String documentation,
java.util.List<java.lang.String> arguments,
CompletionOptionType type)
{
this();
this.name = name;
this.documentation = documentation;
this.arguments = arguments;
this.type = type;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public CompletionOption(CompletionOption other) {
if (other.isSetName()) {
this.name = other.name;
}
if (other.isSetDocumentation()) {
this.documentation = other.documentation;
}
if (other.isSetArguments()) {
java.util.List<java.lang.String> __this__arguments = new java.util.ArrayList<java.lang.String>(other.arguments);
this.arguments = __this__arguments;
}
if (other.isSetType()) {
this.type = other.type;
}
}
public CompletionOption deepCopy() {
return new CompletionOption(this);
}
@Override
public void clear() {
this.name = null;
this.documentation = null;
this.arguments = null;
this.type = null;
}
public java.lang.String getName() {
return this.name;
}
public CompletionOption setName(java.lang.String name) {
this.name = name;
return this;
}
public void unsetName() {
this.name = null;
}
/** Returns true if field name is set (has been assigned a value) and false otherwise */
public boolean isSetName() {
return this.name != null;
}
public void setNameIsSet(boolean value) {
if (!value) {
this.name = null;
}
}
public java.lang.String getDocumentation() {
return this.documentation;
}
public CompletionOption setDocumentation(java.lang.String documentation) {
this.documentation = documentation;
return this;
}
public void unsetDocumentation() {
this.documentation = null;
}
/** Returns true if field documentation is set (has been assigned a value) and false otherwise */
public boolean isSetDocumentation() {
return this.documentation != null;
}
public void setDocumentationIsSet(boolean value) {
if (!value) {
this.documentation = null;
}
}
public int getArgumentsSize() {
return (this.arguments == null) ? 0 : this.arguments.size();
}
public java.util.Iterator<java.lang.String> getArgumentsIterator() {
return (this.arguments == null) ? null : this.arguments.iterator();
}
public void addToArguments(java.lang.String elem) {
if (this.arguments == null) {
this.arguments = new java.util.ArrayList<java.lang.String>();
}
this.arguments.add(elem);
}
/**
* Originaly arguments come in a string `(<arg1>, <arg2>, ...)`.
*/
public java.util.List<java.lang.String> getArguments() {
return this.arguments;
}
/**
* Originaly arguments come in a string `(<arg1>, <arg2>, ...)`.
*/
public CompletionOption setArguments(java.util.List<java.lang.String> arguments) {
this.arguments = arguments;
return this;
}
public void unsetArguments() {
this.arguments = null;
}
/** Returns true if field arguments is set (has been assigned a value) and false otherwise */
public boolean isSetArguments() {
return this.arguments != null;
}
public void setArgumentsIsSet(boolean value) {
if (!value) {
this.arguments = null;
}
}
/**
*
* @see CompletionOptionType
*/
public CompletionOptionType getType() {
return this.type;
}
/**
*
* @see CompletionOptionType
*/
public CompletionOption setType(CompletionOptionType type) {
this.type = type;
return this;
}
public void unsetType() {
this.type = null;
}
/** Returns true if field type is set (has been assigned a value) and false otherwise */
public boolean isSetType() {
return this.type != null;
}
public void setTypeIsSet(boolean value) {
if (!value) {
this.type = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case NAME:
if (value == null) {
unsetName();
} else {
setName((java.lang.String)value);
}
break;
case DOCUMENTATION:
if (value == null) {
unsetDocumentation();
} else {
setDocumentation((java.lang.String)value);
}
break;
case ARGUMENTS:
if (value == null) {
unsetArguments();
} else {
setArguments((java.util.List<java.lang.String>)value);
}
break;
case TYPE:
if (value == null) {
unsetType();
} else {
setType((CompletionOptionType)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case NAME:
return getName();
case DOCUMENTATION:
return getDocumentation();
case ARGUMENTS:
return getArguments();
case TYPE:
return getType();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case NAME:
return isSetName();
case DOCUMENTATION:
return isSetDocumentation();
case ARGUMENTS:
return isSetArguments();
case TYPE:
return isSetType();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof CompletionOption)
return this.equals((CompletionOption)that);
return false;
}
public boolean equals(CompletionOption that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_name = true && this.isSetName();
boolean that_present_name = true && that.isSetName();
if (this_present_name || that_present_name) {
if (!(this_present_name && that_present_name))
return false;
if (!this.name.equals(that.name))
return false;
}
boolean this_present_documentation = true && this.isSetDocumentation();
boolean that_present_documentation = true && that.isSetDocumentation();
if (this_present_documentation || that_present_documentation) {
if (!(this_present_documentation && that_present_documentation))
return false;
if (!this.documentation.equals(that.documentation))
return false;
}
boolean this_present_arguments = true && this.isSetArguments();
boolean that_present_arguments = true && that.isSetArguments();
if (this_present_arguments || that_present_arguments) {
if (!(this_present_arguments && that_present_arguments))
return false;
if (!this.arguments.equals(that.arguments))
return false;
}
boolean this_present_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287);
if (isSetName())
hashCode = hashCode * 8191 + name.hashCode();
hashCode = hashCode * 8191 + ((isSetDocumentation()) ? 131071 : 524287);
if (isSetDocumentation())
hashCode = hashCode * 8191 + documentation.hashCode();
hashCode = hashCode * 8191 + ((isSetArguments()) ? 131071 : 524287);
if (isSetArguments())
hashCode = hashCode * 8191 + arguments.hashCode();
hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
if (isSetType())
hashCode = hashCode * 8191 + type.getValue();
return hashCode;
}
@Override
public int compareTo(CompletionOption other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetDocumentation()).compareTo(other.isSetDocumentation());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDocumentation()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.documentation, other.documentation);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetArguments()).compareTo(other.isSetArguments());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetArguments()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.arguments, other.arguments);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetType()).compareTo(other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("CompletionOption(");
boolean first = true;
sb.append("name:");
if (this.name == null) {
sb.append("null");
} else {
sb.append(this.name);
}
first = false;
if (!first) sb.append(", ");
sb.append("documentation:");
if (this.documentation == null) {
sb.append("null");
} else {
sb.append(this.documentation);
}
first = false;
if (!first) sb.append(", ");
sb.append("arguments:");
if (this.arguments == null) {
sb.append("null");
} else {
sb.append(this.arguments);
}
first = false;
if (!first) sb.append(", ");
sb.append("type:");
if (this.type == null) {
sb.append("null");
} else {
sb.append(this.type);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class CompletionOptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public CompletionOptionStandardScheme getScheme() {
return new CompletionOptionStandardScheme();
}
}
private static class CompletionOptionStandardScheme extends org.apache.thrift.scheme.StandardScheme<CompletionOption> {
public void read(org.apache.thrift.protocol.TProtocol iprot, CompletionOption struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.name = iprot.readString();
struct.setNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // DOCUMENTATION
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.documentation = iprot.readString();
struct.setDocumentationIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // ARGUMENTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
struct.arguments = new java.util.ArrayList<java.lang.String>(_list32.size);
java.lang.String _elem33;
for (int _i34 = 0; _i34 < _list32.size; ++_i34)
{
_elem33 = iprot.readString();
struct.arguments.add(_elem33);
}
iprot.readListEnd();
}
struct.setArgumentsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.type = com.jetbrains.python.console.protocol.CompletionOptionType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, CompletionOption struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.name != null) {
oprot.writeFieldBegin(NAME_FIELD_DESC);
oprot.writeString(struct.name);
oprot.writeFieldEnd();
}
if (struct.documentation != null) {
oprot.writeFieldBegin(DOCUMENTATION_FIELD_DESC);
oprot.writeString(struct.documentation);
oprot.writeFieldEnd();
}
if (struct.arguments != null) {
oprot.writeFieldBegin(ARGUMENTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.arguments.size()));
for (java.lang.String _iter35 : struct.arguments)
{
oprot.writeString(_iter35);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.type != null) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeI32(struct.type.getValue());
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class CompletionOptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public CompletionOptionTupleScheme getScheme() {
return new CompletionOptionTupleScheme();
}
}
private static class CompletionOptionTupleScheme extends org.apache.thrift.scheme.TupleScheme<CompletionOption> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, CompletionOption struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetName()) {
optionals.set(0);
}
if (struct.isSetDocumentation()) {
optionals.set(1);
}
if (struct.isSetArguments()) {
optionals.set(2);
}
if (struct.isSetType()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetName()) {
oprot.writeString(struct.name);
}
if (struct.isSetDocumentation()) {
oprot.writeString(struct.documentation);
}
if (struct.isSetArguments()) {
{
oprot.writeI32(struct.arguments.size());
for (java.lang.String _iter36 : struct.arguments)
{
oprot.writeString(_iter36);
}
}
}
if (struct.isSetType()) {
oprot.writeI32(struct.type.getValue());
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, CompletionOption struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.name = iprot.readString();
struct.setNameIsSet(true);
}
if (incoming.get(1)) {
struct.documentation = iprot.readString();
struct.setDocumentationIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.arguments = new java.util.ArrayList<java.lang.String>(_list37.size);
java.lang.String _elem38;
for (int _i39 = 0; _i39 < _list37.size; ++_i39)
{
_elem38 = iprot.readString();
struct.arguments.add(_elem38);
}
}
struct.setArgumentsIsSet(true);
}
if (incoming.get(3)) {
struct.type = com.jetbrains.python.console.protocol.CompletionOptionType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
@@ -0,0 +1,62 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
/**
* Corresponds to completion types declared in "_pydev_bundle/_pydev_imports_tipper.py".
*/
public enum CompletionOptionType implements org.apache.thrift.TEnum {
IMPORT(0),
CLASS(1),
FUNCTION(2),
ATTR(3),
BUILTIN(4),
PARAM(5),
IPYTHON(11),
IPYTHON_MAGIC(12);
private final int value;
private CompletionOptionType(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static CompletionOptionType findByValue(int value) {
switch (value) {
case 0:
return IMPORT;
case 1:
return CLASS;
case 2:
return FUNCTION;
case 3:
return ATTR;
case 4:
return BUILTIN;
case 5:
return PARAM;
case 11:
return IPYTHON;
case 12:
return IPYTHON_MAGIC;
default:
return null;
}
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,372 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)", date = "2018-08-07")
public class RowHeader implements org.apache.thrift.TBase<RowHeader, RowHeader._Fields>, java.io.Serializable, Cloneable, Comparable<RowHeader> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RowHeader");
private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new RowHeaderStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new RowHeaderTupleSchemeFactory();
public java.lang.String label; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
LABEL((short)1, "label");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // LABEL
return LABEL;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RowHeader.class, metaDataMap);
}
public RowHeader() {
}
public RowHeader(
java.lang.String label)
{
this();
this.label = label;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public RowHeader(RowHeader other) {
if (other.isSetLabel()) {
this.label = other.label;
}
}
public RowHeader deepCopy() {
return new RowHeader(this);
}
@Override
public void clear() {
this.label = null;
}
public java.lang.String getLabel() {
return this.label;
}
public RowHeader setLabel(java.lang.String label) {
this.label = label;
return this;
}
public void unsetLabel() {
this.label = null;
}
/** Returns true if field label is set (has been assigned a value) and false otherwise */
public boolean isSetLabel() {
return this.label != null;
}
public void setLabelIsSet(boolean value) {
if (!value) {
this.label = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case LABEL:
if (value == null) {
unsetLabel();
} else {
setLabel((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case LABEL:
return getLabel();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case LABEL:
return isSetLabel();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof RowHeader)
return this.equals((RowHeader)that);
return false;
}
public boolean equals(RowHeader that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_label = true && this.isSetLabel();
boolean that_present_label = true && that.isSetLabel();
if (this_present_label || that_present_label) {
if (!(this_present_label && that_present_label))
return false;
if (!this.label.equals(that.label))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetLabel()) ? 131071 : 524287);
if (isSetLabel())
hashCode = hashCode * 8191 + label.hashCode();
return hashCode;
}
@Override
public int compareTo(RowHeader other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLabel()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("RowHeader(");
boolean first = true;
sb.append("label:");
if (this.label == null) {
sb.append("null");
} else {
sb.append(this.label);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class RowHeaderStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public RowHeaderStandardScheme getScheme() {
return new RowHeaderStandardScheme();
}
}
private static class RowHeaderStandardScheme extends org.apache.thrift.scheme.StandardScheme<RowHeader> {
public void read(org.apache.thrift.protocol.TProtocol iprot, RowHeader struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // LABEL
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.label = iprot.readString();
struct.setLabelIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, RowHeader struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.label != null) {
oprot.writeFieldBegin(LABEL_FIELD_DESC);
oprot.writeString(struct.label);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class RowHeaderTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public RowHeaderTupleScheme getScheme() {
return new RowHeaderTupleScheme();
}
}
private static class RowHeaderTupleScheme extends org.apache.thrift.scheme.TupleScheme<RowHeader> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, RowHeader struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetLabel()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetLabel()) {
oprot.writeString(struct.label);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, RowHeader struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.label = iprot.readString();
struct.setLabelIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}
@@ -0,0 +1,372 @@
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.jetbrains.python.console.protocol;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)", date = "2018-08-07")
public class UnsupportedArrayTypeException extends org.apache.thrift.TException implements org.apache.thrift.TBase<UnsupportedArrayTypeException, UnsupportedArrayTypeException._Fields>, java.io.Serializable, Cloneable, Comparable<UnsupportedArrayTypeException> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnsupportedArrayTypeException");
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new UnsupportedArrayTypeExceptionStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new UnsupportedArrayTypeExceptionTupleSchemeFactory();
public java.lang.String type; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
TYPE((short)1, "type");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TYPE
return TYPE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UnsupportedArrayTypeException.class, metaDataMap);
}
public UnsupportedArrayTypeException() {
}
public UnsupportedArrayTypeException(
java.lang.String type)
{
this();
this.type = type;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public UnsupportedArrayTypeException(UnsupportedArrayTypeException other) {
if (other.isSetType()) {
this.type = other.type;
}
}
public UnsupportedArrayTypeException deepCopy() {
return new UnsupportedArrayTypeException(this);
}
@Override
public void clear() {
this.type = null;
}
public java.lang.String getType() {
return this.type;
}
public UnsupportedArrayTypeException setType(java.lang.String type) {
this.type = type;
return this;
}
public void unsetType() {
this.type = null;
}
/** Returns true if field type is set (has been assigned a value) and false otherwise */
public boolean isSetType() {
return this.type != null;
}
public void setTypeIsSet(boolean value) {
if (!value) {
this.type = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case TYPE:
if (value == null) {
unsetType();
} else {
setType((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TYPE:
return getType();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case TYPE:
return isSetType();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof UnsupportedArrayTypeException)
return this.equals((UnsupportedArrayTypeException)that);
return false;
}
public boolean equals(UnsupportedArrayTypeException that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
if (isSetType())
hashCode = hashCode * 8191 + type.hashCode();
return hashCode;
}
@Override
public int compareTo(UnsupportedArrayTypeException other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetType()).compareTo(other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("UnsupportedArrayTypeException(");
boolean first = true;
sb.append("type:");
if (this.type == null) {
sb.append("null");
} else {
sb.append(this.type);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class UnsupportedArrayTypeExceptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public UnsupportedArrayTypeExceptionStandardScheme getScheme() {
return new UnsupportedArrayTypeExceptionStandardScheme();
}
}
private static class UnsupportedArrayTypeExceptionStandardScheme extends org.apache.thrift.scheme.StandardScheme<UnsupportedArrayTypeException> {
public void read(org.apache.thrift.protocol.TProtocol iprot, UnsupportedArrayTypeException struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.type = iprot.readString();
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, UnsupportedArrayTypeException struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.type != null) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeString(struct.type);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class UnsupportedArrayTypeExceptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public UnsupportedArrayTypeExceptionTupleScheme getScheme() {
return new UnsupportedArrayTypeExceptionTupleScheme();
}
}
private static class UnsupportedArrayTypeExceptionTupleScheme extends org.apache.thrift.scheme.TupleScheme<UnsupportedArrayTypeException> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, UnsupportedArrayTypeException struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetType()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetType()) {
oprot.writeString(struct.type);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, UnsupportedArrayTypeException struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.type = iprot.readString();
struct.setTypeIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}