TMakeCloudTmpRsVisibleRequest.java
/**
* Autogenerated by Thrift Compiler (0.16.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.doris.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class TMakeCloudTmpRsVisibleRequest implements org.apache.thrift.TBase<TMakeCloudTmpRsVisibleRequest, TMakeCloudTmpRsVisibleRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TMakeCloudTmpRsVisibleRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMakeCloudTmpRsVisibleRequest");
private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_id", org.apache.thrift.protocol.TType.I64, (short)1);
private static final org.apache.thrift.protocol.TField TABLET_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("tablet_ids", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.protocol.TField PARTITION_VERSION_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("partition_version_map", org.apache.thrift.protocol.TType.MAP, (short)3);
private static final org.apache.thrift.protocol.TField VERSION_UPDATE_TIME_MS_FIELD_DESC = new org.apache.thrift.protocol.TField("version_update_time_ms", org.apache.thrift.protocol.TType.I64, (short)4);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TMakeCloudTmpRsVisibleRequestStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TMakeCloudTmpRsVisibleRequestTupleSchemeFactory();
public long txn_id; // required
public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> tablet_ids; // required
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> partition_version_map; // required
public long version_update_time_ms; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
TXN_ID((short)1, "txn_id"),
TABLET_IDS((short)2, "tablet_ids"),
PARTITION_VERSION_MAP((short)3, "partition_version_map"),
VERSION_UPDATE_TIME_MS((short)4, "version_update_time_ms");
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.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TXN_ID
return TXN_ID;
case 2: // TABLET_IDS
return TABLET_IDS;
case 3: // PARTITION_VERSION_MAP
return PARTITION_VERSION_MAP;
case 4: // VERSION_UPDATE_TIME_MS
return VERSION_UPDATE_TIME_MS;
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.
*/
@org.apache.thrift.annotation.Nullable
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 __TXN_ID_ISSET_ID = 0;
private static final int __VERSION_UPDATE_TIME_MS_ISSET_ID = 1;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.VERSION_UPDATE_TIME_MS};
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.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txn_id", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.TABLET_IDS, new org.apache.thrift.meta_data.FieldMetaData("tablet_ids", org.apache.thrift.TFieldRequirementType.REQUIRED,
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.I64 , "TTabletId"))));
tmpMap.put(_Fields.PARTITION_VERSION_MAP, new org.apache.thrift.meta_data.FieldMetaData("partition_version_map", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "TPartitionId"),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "TVersion"))));
tmpMap.put(_Fields.VERSION_UPDATE_TIME_MS, new org.apache.thrift.meta_data.FieldMetaData("version_update_time_ms", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TMakeCloudTmpRsVisibleRequest.class, metaDataMap);
}
public TMakeCloudTmpRsVisibleRequest() {
}
public TMakeCloudTmpRsVisibleRequest(
long txn_id,
java.util.List<java.lang.Long> tablet_ids,
java.util.Map<java.lang.Long,java.lang.Long> partition_version_map)
{
this();
this.txn_id = txn_id;
setTxnIdIsSet(true);
this.tablet_ids = tablet_ids;
this.partition_version_map = partition_version_map;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TMakeCloudTmpRsVisibleRequest(TMakeCloudTmpRsVisibleRequest other) {
__isset_bitfield = other.__isset_bitfield;
this.txn_id = other.txn_id;
if (other.isSetTabletIds()) {
java.util.List<java.lang.Long> __this__tablet_ids = new java.util.ArrayList<java.lang.Long>(other.tablet_ids.size());
for (java.lang.Long other_element : other.tablet_ids) {
__this__tablet_ids.add(other_element);
}
this.tablet_ids = __this__tablet_ids;
}
if (other.isSetPartitionVersionMap()) {
java.util.Map<java.lang.Long,java.lang.Long> __this__partition_version_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(other.partition_version_map.size());
for (java.util.Map.Entry<java.lang.Long, java.lang.Long> other_element : other.partition_version_map.entrySet()) {
java.lang.Long other_element_key = other_element.getKey();
java.lang.Long other_element_value = other_element.getValue();
java.lang.Long __this__partition_version_map_copy_key = other_element_key;
java.lang.Long __this__partition_version_map_copy_value = other_element_value;
__this__partition_version_map.put(__this__partition_version_map_copy_key, __this__partition_version_map_copy_value);
}
this.partition_version_map = __this__partition_version_map;
}
this.version_update_time_ms = other.version_update_time_ms;
}
public TMakeCloudTmpRsVisibleRequest deepCopy() {
return new TMakeCloudTmpRsVisibleRequest(this);
}
@Override
public void clear() {
setTxnIdIsSet(false);
this.txn_id = 0;
this.tablet_ids = null;
this.partition_version_map = null;
setVersionUpdateTimeMsIsSet(false);
this.version_update_time_ms = 0;
}
public long getTxnId() {
return this.txn_id;
}
public TMakeCloudTmpRsVisibleRequest setTxnId(long txn_id) {
this.txn_id = txn_id;
setTxnIdIsSet(true);
return this;
}
public void unsetTxnId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TXN_ID_ISSET_ID);
}
/** Returns true if field txn_id is set (has been assigned a value) and false otherwise */
public boolean isSetTxnId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TXN_ID_ISSET_ID);
}
public void setTxnIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TXN_ID_ISSET_ID, value);
}
public int getTabletIdsSize() {
return (this.tablet_ids == null) ? 0 : this.tablet_ids.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.Long> getTabletIdsIterator() {
return (this.tablet_ids == null) ? null : this.tablet_ids.iterator();
}
public void addToTabletIds(long elem) {
if (this.tablet_ids == null) {
this.tablet_ids = new java.util.ArrayList<java.lang.Long>();
}
this.tablet_ids.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.lang.Long> getTabletIds() {
return this.tablet_ids;
}
public TMakeCloudTmpRsVisibleRequest setTabletIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> tablet_ids) {
this.tablet_ids = tablet_ids;
return this;
}
public void unsetTabletIds() {
this.tablet_ids = null;
}
/** Returns true if field tablet_ids is set (has been assigned a value) and false otherwise */
public boolean isSetTabletIds() {
return this.tablet_ids != null;
}
public void setTabletIdsIsSet(boolean value) {
if (!value) {
this.tablet_ids = null;
}
}
public int getPartitionVersionMapSize() {
return (this.partition_version_map == null) ? 0 : this.partition_version_map.size();
}
public void putToPartitionVersionMap(long key, long val) {
if (this.partition_version_map == null) {
this.partition_version_map = new java.util.HashMap<java.lang.Long,java.lang.Long>();
}
this.partition_version_map.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Long,java.lang.Long> getPartitionVersionMap() {
return this.partition_version_map;
}
public TMakeCloudTmpRsVisibleRequest setPartitionVersionMap(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> partition_version_map) {
this.partition_version_map = partition_version_map;
return this;
}
public void unsetPartitionVersionMap() {
this.partition_version_map = null;
}
/** Returns true if field partition_version_map is set (has been assigned a value) and false otherwise */
public boolean isSetPartitionVersionMap() {
return this.partition_version_map != null;
}
public void setPartitionVersionMapIsSet(boolean value) {
if (!value) {
this.partition_version_map = null;
}
}
public long getVersionUpdateTimeMs() {
return this.version_update_time_ms;
}
public TMakeCloudTmpRsVisibleRequest setVersionUpdateTimeMs(long version_update_time_ms) {
this.version_update_time_ms = version_update_time_ms;
setVersionUpdateTimeMsIsSet(true);
return this;
}
public void unsetVersionUpdateTimeMs() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __VERSION_UPDATE_TIME_MS_ISSET_ID);
}
/** Returns true if field version_update_time_ms is set (has been assigned a value) and false otherwise */
public boolean isSetVersionUpdateTimeMs() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __VERSION_UPDATE_TIME_MS_ISSET_ID);
}
public void setVersionUpdateTimeMsIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __VERSION_UPDATE_TIME_MS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TXN_ID:
if (value == null) {
unsetTxnId();
} else {
setTxnId((java.lang.Long)value);
}
break;
case TABLET_IDS:
if (value == null) {
unsetTabletIds();
} else {
setTabletIds((java.util.List<java.lang.Long>)value);
}
break;
case PARTITION_VERSION_MAP:
if (value == null) {
unsetPartitionVersionMap();
} else {
setPartitionVersionMap((java.util.Map<java.lang.Long,java.lang.Long>)value);
}
break;
case VERSION_UPDATE_TIME_MS:
if (value == null) {
unsetVersionUpdateTimeMs();
} else {
setVersionUpdateTimeMs((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TXN_ID:
return getTxnId();
case TABLET_IDS:
return getTabletIds();
case PARTITION_VERSION_MAP:
return getPartitionVersionMap();
case VERSION_UPDATE_TIME_MS:
return getVersionUpdateTimeMs();
}
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 TXN_ID:
return isSetTxnId();
case TABLET_IDS:
return isSetTabletIds();
case PARTITION_VERSION_MAP:
return isSetPartitionVersionMap();
case VERSION_UPDATE_TIME_MS:
return isSetVersionUpdateTimeMs();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TMakeCloudTmpRsVisibleRequest)
return this.equals((TMakeCloudTmpRsVisibleRequest)that);
return false;
}
public boolean equals(TMakeCloudTmpRsVisibleRequest that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_txn_id = true;
boolean that_present_txn_id = true;
if (this_present_txn_id || that_present_txn_id) {
if (!(this_present_txn_id && that_present_txn_id))
return false;
if (this.txn_id != that.txn_id)
return false;
}
boolean this_present_tablet_ids = true && this.isSetTabletIds();
boolean that_present_tablet_ids = true && that.isSetTabletIds();
if (this_present_tablet_ids || that_present_tablet_ids) {
if (!(this_present_tablet_ids && that_present_tablet_ids))
return false;
if (!this.tablet_ids.equals(that.tablet_ids))
return false;
}
boolean this_present_partition_version_map = true && this.isSetPartitionVersionMap();
boolean that_present_partition_version_map = true && that.isSetPartitionVersionMap();
if (this_present_partition_version_map || that_present_partition_version_map) {
if (!(this_present_partition_version_map && that_present_partition_version_map))
return false;
if (!this.partition_version_map.equals(that.partition_version_map))
return false;
}
boolean this_present_version_update_time_ms = true && this.isSetVersionUpdateTimeMs();
boolean that_present_version_update_time_ms = true && that.isSetVersionUpdateTimeMs();
if (this_present_version_update_time_ms || that_present_version_update_time_ms) {
if (!(this_present_version_update_time_ms && that_present_version_update_time_ms))
return false;
if (this.version_update_time_ms != that.version_update_time_ms)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(txn_id);
hashCode = hashCode * 8191 + ((isSetTabletIds()) ? 131071 : 524287);
if (isSetTabletIds())
hashCode = hashCode * 8191 + tablet_ids.hashCode();
hashCode = hashCode * 8191 + ((isSetPartitionVersionMap()) ? 131071 : 524287);
if (isSetPartitionVersionMap())
hashCode = hashCode * 8191 + partition_version_map.hashCode();
hashCode = hashCode * 8191 + ((isSetVersionUpdateTimeMs()) ? 131071 : 524287);
if (isSetVersionUpdateTimeMs())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(version_update_time_ms);
return hashCode;
}
@Override
public int compareTo(TMakeCloudTmpRsVisibleRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetTxnId(), other.isSetTxnId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTxnId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_id, other.txn_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTabletIds(), other.isSetTabletIds());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTabletIds()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablet_ids, other.tablet_ids);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetPartitionVersionMap(), other.isSetPartitionVersionMap());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPartitionVersionMap()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition_version_map, other.partition_version_map);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetVersionUpdateTimeMs(), other.isSetVersionUpdateTimeMs());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetVersionUpdateTimeMs()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version_update_time_ms, other.version_update_time_ms);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
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("TMakeCloudTmpRsVisibleRequest(");
boolean first = true;
sb.append("txn_id:");
sb.append(this.txn_id);
first = false;
if (!first) sb.append(", ");
sb.append("tablet_ids:");
if (this.tablet_ids == null) {
sb.append("null");
} else {
sb.append(this.tablet_ids);
}
first = false;
if (!first) sb.append(", ");
sb.append("partition_version_map:");
if (this.partition_version_map == null) {
sb.append("null");
} else {
sb.append(this.partition_version_map);
}
first = false;
if (isSetVersionUpdateTimeMs()) {
if (!first) sb.append(", ");
sb.append("version_update_time_ms:");
sb.append(this.version_update_time_ms);
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// alas, we cannot check 'txn_id' because it's a primitive and you chose the non-beans generator.
if (tablet_ids == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablet_ids' was not present! Struct: " + toString());
}
if (partition_version_map == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'partition_version_map' was not present! Struct: " + toString());
}
// 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 TMakeCloudTmpRsVisibleRequestStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TMakeCloudTmpRsVisibleRequestStandardScheme getScheme() {
return new TMakeCloudTmpRsVisibleRequestStandardScheme();
}
}
private static class TMakeCloudTmpRsVisibleRequestStandardScheme extends org.apache.thrift.scheme.StandardScheme<TMakeCloudTmpRsVisibleRequest> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TMakeCloudTmpRsVisibleRequest 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: // TXN_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.txn_id = iprot.readI64();
struct.setTxnIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // TABLET_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list334 = iprot.readListBegin();
struct.tablet_ids = new java.util.ArrayList<java.lang.Long>(_list334.size);
long _elem335;
for (int _i336 = 0; _i336 < _list334.size; ++_i336)
{
_elem335 = iprot.readI64();
struct.tablet_ids.add(_elem335);
}
iprot.readListEnd();
}
struct.setTabletIdsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // PARTITION_VERSION_MAP
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map337 = iprot.readMapBegin();
struct.partition_version_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map337.size);
long _key338;
long _val339;
for (int _i340 = 0; _i340 < _map337.size; ++_i340)
{
_key338 = iprot.readI64();
_val339 = iprot.readI64();
struct.partition_version_map.put(_key338, _val339);
}
iprot.readMapEnd();
}
struct.setPartitionVersionMapIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // VERSION_UPDATE_TIME_MS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.version_update_time_ms = iprot.readI64();
struct.setVersionUpdateTimeMsIsSet(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
if (!struct.isSetTxnId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_id' was not found in serialized data! Struct: " + toString());
}
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TMakeCloudTmpRsVisibleRequest struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
oprot.writeI64(struct.txn_id);
oprot.writeFieldEnd();
if (struct.tablet_ids != null) {
oprot.writeFieldBegin(TABLET_IDS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.tablet_ids.size()));
for (long _iter341 : struct.tablet_ids)
{
oprot.writeI64(_iter341);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.partition_version_map != null) {
oprot.writeFieldBegin(PARTITION_VERSION_MAP_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, struct.partition_version_map.size()));
for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter342 : struct.partition_version_map.entrySet())
{
oprot.writeI64(_iter342.getKey());
oprot.writeI64(_iter342.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
if (struct.isSetVersionUpdateTimeMs()) {
oprot.writeFieldBegin(VERSION_UPDATE_TIME_MS_FIELD_DESC);
oprot.writeI64(struct.version_update_time_ms);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TMakeCloudTmpRsVisibleRequestTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TMakeCloudTmpRsVisibleRequestTupleScheme getScheme() {
return new TMakeCloudTmpRsVisibleRequestTupleScheme();
}
}
private static class TMakeCloudTmpRsVisibleRequestTupleScheme extends org.apache.thrift.scheme.TupleScheme<TMakeCloudTmpRsVisibleRequest> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TMakeCloudTmpRsVisibleRequest struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeI64(struct.txn_id);
{
oprot.writeI32(struct.tablet_ids.size());
for (long _iter343 : struct.tablet_ids)
{
oprot.writeI64(_iter343);
}
}
{
oprot.writeI32(struct.partition_version_map.size());
for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter344 : struct.partition_version_map.entrySet())
{
oprot.writeI64(_iter344.getKey());
oprot.writeI64(_iter344.getValue());
}
}
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetVersionUpdateTimeMs()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetVersionUpdateTimeMs()) {
oprot.writeI64(struct.version_update_time_ms);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TMakeCloudTmpRsVisibleRequest struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.txn_id = iprot.readI64();
struct.setTxnIdIsSet(true);
{
org.apache.thrift.protocol.TList _list345 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
struct.tablet_ids = new java.util.ArrayList<java.lang.Long>(_list345.size);
long _elem346;
for (int _i347 = 0; _i347 < _list345.size; ++_i347)
{
_elem346 = iprot.readI64();
struct.tablet_ids.add(_elem346);
}
}
struct.setTabletIdsIsSet(true);
{
org.apache.thrift.protocol.TMap _map348 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64);
struct.partition_version_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map348.size);
long _key349;
long _val350;
for (int _i351 = 0; _i351 < _map348.size; ++_i351)
{
_key349 = iprot.readI64();
_val350 = iprot.readI64();
struct.partition_version_map.put(_key349, _val350);
}
}
struct.setPartitionVersionMapIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.version_update_time_ms = iprot.readI64();
struct.setVersionUpdateTimeMsIsSet(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();
}
}