blob: 6a5e7bea320bbc35c241ebc325f175bb4b669891 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Autogenerated by Thrift Compiler (0.18.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.airavata.model.experiment;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.18.1)")
public class ExperimentSummaryModel implements org.apache.thrift.TBase<ExperimentSummaryModel, ExperimentSummaryModel._Fields>, java.io.Serializable, Cloneable, Comparable<ExperimentSummaryModel> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentSummaryModel");
private static final org.apache.thrift.protocol.TField EXPERIMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentId", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField CREATION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTime", org.apache.thrift.protocol.TType.I64, (short)4);
private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)5);
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)6);
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.protocol.TField EXECUTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("executionId", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField RESOURCE_HOST_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("resourceHostId", org.apache.thrift.protocol.TType.STRING, (short)9);
private static final org.apache.thrift.protocol.TField EXPERIMENT_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentStatus", org.apache.thrift.protocol.TType.STRING, (short)10);
private static final org.apache.thrift.protocol.TField STATUS_UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("statusUpdateTime", org.apache.thrift.protocol.TType.I64, (short)12);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ExperimentSummaryModelStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ExperimentSummaryModelTupleSchemeFactory();
private @org.apache.thrift.annotation.Nullable java.lang.String experimentId; // required
private @org.apache.thrift.annotation.Nullable java.lang.String projectId; // required
private @org.apache.thrift.annotation.Nullable java.lang.String gatewayId; // required
private long creationTime; // optional
private @org.apache.thrift.annotation.Nullable java.lang.String userName; // required
private @org.apache.thrift.annotation.Nullable java.lang.String name; // required
private @org.apache.thrift.annotation.Nullable java.lang.String description; // optional
private @org.apache.thrift.annotation.Nullable java.lang.String executionId; // optional
private @org.apache.thrift.annotation.Nullable java.lang.String resourceHostId; // optional
private @org.apache.thrift.annotation.Nullable java.lang.String experimentStatus; // optional
private long statusUpdateTime; // 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 {
EXPERIMENT_ID((short)1, "experimentId"),
PROJECT_ID((short)2, "projectId"),
GATEWAY_ID((short)3, "gatewayId"),
CREATION_TIME((short)4, "creationTime"),
USER_NAME((short)5, "userName"),
NAME((short)6, "name"),
DESCRIPTION((short)7, "description"),
EXECUTION_ID((short)8, "executionId"),
RESOURCE_HOST_ID((short)9, "resourceHostId"),
EXPERIMENT_STATUS((short)10, "experimentStatus"),
STATUS_UPDATE_TIME((short)12, "statusUpdateTime");
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: // EXPERIMENT_ID
return EXPERIMENT_ID;
case 2: // PROJECT_ID
return PROJECT_ID;
case 3: // GATEWAY_ID
return GATEWAY_ID;
case 4: // CREATION_TIME
return CREATION_TIME;
case 5: // USER_NAME
return USER_NAME;
case 6: // NAME
return NAME;
case 7: // DESCRIPTION
return DESCRIPTION;
case 8: // EXECUTION_ID
return EXECUTION_ID;
case 9: // RESOURCE_HOST_ID
return RESOURCE_HOST_ID;
case 10: // EXPERIMENT_STATUS
return EXPERIMENT_STATUS;
case 12: // STATUS_UPDATE_TIME
return STATUS_UPDATE_TIME;
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;
}
@Override
public short getThriftFieldId() {
return _thriftId;
}
@Override
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __CREATIONTIME_ISSET_ID = 0;
private static final int __STATUSUPDATETIME_ISSET_ID = 1;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.CREATION_TIME,_Fields.DESCRIPTION,_Fields.EXECUTION_ID,_Fields.RESOURCE_HOST_ID,_Fields.EXPERIMENT_STATUS,_Fields.STATUS_UPDATE_TIME};
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.EXPERIMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("experimentId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CREATION_TIME, new org.apache.thrift.meta_data.FieldMetaData("creationTime", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXECUTION_ID, new org.apache.thrift.meta_data.FieldMetaData("executionId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RESOURCE_HOST_ID, new org.apache.thrift.meta_data.FieldMetaData("resourceHostId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXPERIMENT_STATUS, new org.apache.thrift.meta_data.FieldMetaData("experimentStatus", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.STATUS_UPDATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("statusUpdateTime", 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(ExperimentSummaryModel.class, metaDataMap);
}
public ExperimentSummaryModel() {
}
public ExperimentSummaryModel(
java.lang.String experimentId,
java.lang.String projectId,
java.lang.String gatewayId,
java.lang.String userName,
java.lang.String name)
{
this();
this.experimentId = experimentId;
this.projectId = projectId;
this.gatewayId = gatewayId;
this.userName = userName;
this.name = name;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public ExperimentSummaryModel(ExperimentSummaryModel other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetExperimentId()) {
this.experimentId = other.experimentId;
}
if (other.isSetProjectId()) {
this.projectId = other.projectId;
}
if (other.isSetGatewayId()) {
this.gatewayId = other.gatewayId;
}
this.creationTime = other.creationTime;
if (other.isSetUserName()) {
this.userName = other.userName;
}
if (other.isSetName()) {
this.name = other.name;
}
if (other.isSetDescription()) {
this.description = other.description;
}
if (other.isSetExecutionId()) {
this.executionId = other.executionId;
}
if (other.isSetResourceHostId()) {
this.resourceHostId = other.resourceHostId;
}
if (other.isSetExperimentStatus()) {
this.experimentStatus = other.experimentStatus;
}
this.statusUpdateTime = other.statusUpdateTime;
}
@Override
public ExperimentSummaryModel deepCopy() {
return new ExperimentSummaryModel(this);
}
@Override
public void clear() {
this.experimentId = null;
this.projectId = null;
this.gatewayId = null;
setCreationTimeIsSet(false);
this.creationTime = 0;
this.userName = null;
this.name = null;
this.description = null;
this.executionId = null;
this.resourceHostId = null;
this.experimentStatus = null;
setStatusUpdateTimeIsSet(false);
this.statusUpdateTime = 0;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getExperimentId() {
return this.experimentId;
}
public void setExperimentId(@org.apache.thrift.annotation.Nullable java.lang.String experimentId) {
this.experimentId = experimentId;
}
public void unsetExperimentId() {
this.experimentId = null;
}
/** Returns true if field experimentId is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentId() {
return this.experimentId != null;
}
public void setExperimentIdIsSet(boolean value) {
if (!value) {
this.experimentId = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getProjectId() {
return this.projectId;
}
public void setProjectId(@org.apache.thrift.annotation.Nullable java.lang.String projectId) {
this.projectId = projectId;
}
public void unsetProjectId() {
this.projectId = null;
}
/** Returns true if field projectId is set (has been assigned a value) and false otherwise */
public boolean isSetProjectId() {
return this.projectId != null;
}
public void setProjectIdIsSet(boolean value) {
if (!value) {
this.projectId = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getGatewayId() {
return this.gatewayId;
}
public void setGatewayId(@org.apache.thrift.annotation.Nullable java.lang.String gatewayId) {
this.gatewayId = gatewayId;
}
public void unsetGatewayId() {
this.gatewayId = null;
}
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
public boolean isSetGatewayId() {
return this.gatewayId != null;
}
public void setGatewayIdIsSet(boolean value) {
if (!value) {
this.gatewayId = null;
}
}
public long getCreationTime() {
return this.creationTime;
}
public void setCreationTime(long creationTime) {
this.creationTime = creationTime;
setCreationTimeIsSet(true);
}
public void unsetCreationTime() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CREATIONTIME_ISSET_ID);
}
/** Returns true if field creationTime is set (has been assigned a value) and false otherwise */
public boolean isSetCreationTime() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATIONTIME_ISSET_ID);
}
public void setCreationTimeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATIONTIME_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getUserName() {
return this.userName;
}
public void setUserName(@org.apache.thrift.annotation.Nullable java.lang.String userName) {
this.userName = userName;
}
public void unsetUserName() {
this.userName = null;
}
/** Returns true if field userName is set (has been assigned a value) and false otherwise */
public boolean isSetUserName() {
return this.userName != null;
}
public void setUserNameIsSet(boolean value) {
if (!value) {
this.userName = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getName() {
return this.name;
}
public void setName(@org.apache.thrift.annotation.Nullable java.lang.String name) {
this.name = name;
}
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;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getDescription() {
return this.description;
}
public void setDescription(@org.apache.thrift.annotation.Nullable java.lang.String description) {
this.description = description;
}
public void unsetDescription() {
this.description = null;
}
/** Returns true if field description is set (has been assigned a value) and false otherwise */
public boolean isSetDescription() {
return this.description != null;
}
public void setDescriptionIsSet(boolean value) {
if (!value) {
this.description = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getExecutionId() {
return this.executionId;
}
public void setExecutionId(@org.apache.thrift.annotation.Nullable java.lang.String executionId) {
this.executionId = executionId;
}
public void unsetExecutionId() {
this.executionId = null;
}
/** Returns true if field executionId is set (has been assigned a value) and false otherwise */
public boolean isSetExecutionId() {
return this.executionId != null;
}
public void setExecutionIdIsSet(boolean value) {
if (!value) {
this.executionId = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getResourceHostId() {
return this.resourceHostId;
}
public void setResourceHostId(@org.apache.thrift.annotation.Nullable java.lang.String resourceHostId) {
this.resourceHostId = resourceHostId;
}
public void unsetResourceHostId() {
this.resourceHostId = null;
}
/** Returns true if field resourceHostId is set (has been assigned a value) and false otherwise */
public boolean isSetResourceHostId() {
return this.resourceHostId != null;
}
public void setResourceHostIdIsSet(boolean value) {
if (!value) {
this.resourceHostId = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getExperimentStatus() {
return this.experimentStatus;
}
public void setExperimentStatus(@org.apache.thrift.annotation.Nullable java.lang.String experimentStatus) {
this.experimentStatus = experimentStatus;
}
public void unsetExperimentStatus() {
this.experimentStatus = null;
}
/** Returns true if field experimentStatus is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentStatus() {
return this.experimentStatus != null;
}
public void setExperimentStatusIsSet(boolean value) {
if (!value) {
this.experimentStatus = null;
}
}
public long getStatusUpdateTime() {
return this.statusUpdateTime;
}
public void setStatusUpdateTime(long statusUpdateTime) {
this.statusUpdateTime = statusUpdateTime;
setStatusUpdateTimeIsSet(true);
}
public void unsetStatusUpdateTime() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID);
}
/** Returns true if field statusUpdateTime is set (has been assigned a value) and false otherwise */
public boolean isSetStatusUpdateTime() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID);
}
public void setStatusUpdateTimeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID, value);
}
@Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case EXPERIMENT_ID:
if (value == null) {
unsetExperimentId();
} else {
setExperimentId((java.lang.String)value);
}
break;
case PROJECT_ID:
if (value == null) {
unsetProjectId();
} else {
setProjectId((java.lang.String)value);
}
break;
case GATEWAY_ID:
if (value == null) {
unsetGatewayId();
} else {
setGatewayId((java.lang.String)value);
}
break;
case CREATION_TIME:
if (value == null) {
unsetCreationTime();
} else {
setCreationTime((java.lang.Long)value);
}
break;
case USER_NAME:
if (value == null) {
unsetUserName();
} else {
setUserName((java.lang.String)value);
}
break;
case NAME:
if (value == null) {
unsetName();
} else {
setName((java.lang.String)value);
}
break;
case DESCRIPTION:
if (value == null) {
unsetDescription();
} else {
setDescription((java.lang.String)value);
}
break;
case EXECUTION_ID:
if (value == null) {
unsetExecutionId();
} else {
setExecutionId((java.lang.String)value);
}
break;
case RESOURCE_HOST_ID:
if (value == null) {
unsetResourceHostId();
} else {
setResourceHostId((java.lang.String)value);
}
break;
case EXPERIMENT_STATUS:
if (value == null) {
unsetExperimentStatus();
} else {
setExperimentStatus((java.lang.String)value);
}
break;
case STATUS_UPDATE_TIME:
if (value == null) {
unsetStatusUpdateTime();
} else {
setStatusUpdateTime((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
@Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case EXPERIMENT_ID:
return getExperimentId();
case PROJECT_ID:
return getProjectId();
case GATEWAY_ID:
return getGatewayId();
case CREATION_TIME:
return getCreationTime();
case USER_NAME:
return getUserName();
case NAME:
return getName();
case DESCRIPTION:
return getDescription();
case EXECUTION_ID:
return getExecutionId();
case RESOURCE_HOST_ID:
return getResourceHostId();
case EXPERIMENT_STATUS:
return getExperimentStatus();
case STATUS_UPDATE_TIME:
return getStatusUpdateTime();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
@Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case EXPERIMENT_ID:
return isSetExperimentId();
case PROJECT_ID:
return isSetProjectId();
case GATEWAY_ID:
return isSetGatewayId();
case CREATION_TIME:
return isSetCreationTime();
case USER_NAME:
return isSetUserName();
case NAME:
return isSetName();
case DESCRIPTION:
return isSetDescription();
case EXECUTION_ID:
return isSetExecutionId();
case RESOURCE_HOST_ID:
return isSetResourceHostId();
case EXPERIMENT_STATUS:
return isSetExperimentStatus();
case STATUS_UPDATE_TIME:
return isSetStatusUpdateTime();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof ExperimentSummaryModel)
return this.equals((ExperimentSummaryModel)that);
return false;
}
public boolean equals(ExperimentSummaryModel that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_experimentId = true && this.isSetExperimentId();
boolean that_present_experimentId = true && that.isSetExperimentId();
if (this_present_experimentId || that_present_experimentId) {
if (!(this_present_experimentId && that_present_experimentId))
return false;
if (!this.experimentId.equals(that.experimentId))
return false;
}
boolean this_present_projectId = true && this.isSetProjectId();
boolean that_present_projectId = true && that.isSetProjectId();
if (this_present_projectId || that_present_projectId) {
if (!(this_present_projectId && that_present_projectId))
return false;
if (!this.projectId.equals(that.projectId))
return false;
}
boolean this_present_gatewayId = true && this.isSetGatewayId();
boolean that_present_gatewayId = true && that.isSetGatewayId();
if (this_present_gatewayId || that_present_gatewayId) {
if (!(this_present_gatewayId && that_present_gatewayId))
return false;
if (!this.gatewayId.equals(that.gatewayId))
return false;
}
boolean this_present_creationTime = true && this.isSetCreationTime();
boolean that_present_creationTime = true && that.isSetCreationTime();
if (this_present_creationTime || that_present_creationTime) {
if (!(this_present_creationTime && that_present_creationTime))
return false;
if (this.creationTime != that.creationTime)
return false;
}
boolean this_present_userName = true && this.isSetUserName();
boolean that_present_userName = true && that.isSetUserName();
if (this_present_userName || that_present_userName) {
if (!(this_present_userName && that_present_userName))
return false;
if (!this.userName.equals(that.userName))
return false;
}
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_description = true && this.isSetDescription();
boolean that_present_description = true && that.isSetDescription();
if (this_present_description || that_present_description) {
if (!(this_present_description && that_present_description))
return false;
if (!this.description.equals(that.description))
return false;
}
boolean this_present_executionId = true && this.isSetExecutionId();
boolean that_present_executionId = true && that.isSetExecutionId();
if (this_present_executionId || that_present_executionId) {
if (!(this_present_executionId && that_present_executionId))
return false;
if (!this.executionId.equals(that.executionId))
return false;
}
boolean this_present_resourceHostId = true && this.isSetResourceHostId();
boolean that_present_resourceHostId = true && that.isSetResourceHostId();
if (this_present_resourceHostId || that_present_resourceHostId) {
if (!(this_present_resourceHostId && that_present_resourceHostId))
return false;
if (!this.resourceHostId.equals(that.resourceHostId))
return false;
}
boolean this_present_experimentStatus = true && this.isSetExperimentStatus();
boolean that_present_experimentStatus = true && that.isSetExperimentStatus();
if (this_present_experimentStatus || that_present_experimentStatus) {
if (!(this_present_experimentStatus && that_present_experimentStatus))
return false;
if (!this.experimentStatus.equals(that.experimentStatus))
return false;
}
boolean this_present_statusUpdateTime = true && this.isSetStatusUpdateTime();
boolean that_present_statusUpdateTime = true && that.isSetStatusUpdateTime();
if (this_present_statusUpdateTime || that_present_statusUpdateTime) {
if (!(this_present_statusUpdateTime && that_present_statusUpdateTime))
return false;
if (this.statusUpdateTime != that.statusUpdateTime)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetExperimentId()) ? 131071 : 524287);
if (isSetExperimentId())
hashCode = hashCode * 8191 + experimentId.hashCode();
hashCode = hashCode * 8191 + ((isSetProjectId()) ? 131071 : 524287);
if (isSetProjectId())
hashCode = hashCode * 8191 + projectId.hashCode();
hashCode = hashCode * 8191 + ((isSetGatewayId()) ? 131071 : 524287);
if (isSetGatewayId())
hashCode = hashCode * 8191 + gatewayId.hashCode();
hashCode = hashCode * 8191 + ((isSetCreationTime()) ? 131071 : 524287);
if (isSetCreationTime())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(creationTime);
hashCode = hashCode * 8191 + ((isSetUserName()) ? 131071 : 524287);
if (isSetUserName())
hashCode = hashCode * 8191 + userName.hashCode();
hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287);
if (isSetName())
hashCode = hashCode * 8191 + name.hashCode();
hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287);
if (isSetDescription())
hashCode = hashCode * 8191 + description.hashCode();
hashCode = hashCode * 8191 + ((isSetExecutionId()) ? 131071 : 524287);
if (isSetExecutionId())
hashCode = hashCode * 8191 + executionId.hashCode();
hashCode = hashCode * 8191 + ((isSetResourceHostId()) ? 131071 : 524287);
if (isSetResourceHostId())
hashCode = hashCode * 8191 + resourceHostId.hashCode();
hashCode = hashCode * 8191 + ((isSetExperimentStatus()) ? 131071 : 524287);
if (isSetExperimentStatus())
hashCode = hashCode * 8191 + experimentStatus.hashCode();
hashCode = hashCode * 8191 + ((isSetStatusUpdateTime()) ? 131071 : 524287);
if (isSetStatusUpdateTime())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(statusUpdateTime);
return hashCode;
}
@Override
public int compareTo(ExperimentSummaryModel other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetExperimentId(), other.isSetExperimentId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetExperimentId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentId, other.experimentId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetProjectId(), other.isSetProjectId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetProjectId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetGatewayId(), other.isSetGatewayId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGatewayId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCreationTime(), other.isSetCreationTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCreationTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationTime, other.creationTime);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUserName(), other.isSetUserName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUserName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetName(), 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.compare(isSetDescription(), other.isSetDescription());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDescription()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetExecutionId(), other.isSetExecutionId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetExecutionId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.executionId, other.executionId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetResourceHostId(), other.isSetResourceHostId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetResourceHostId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceHostId, other.resourceHostId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetExperimentStatus(), other.isSetExperimentStatus());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetExperimentStatus()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentStatus, other.experimentStatus);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetStatusUpdateTime(), other.isSetStatusUpdateTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetStatusUpdateTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusUpdateTime, other.statusUpdateTime);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
@Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
@Override
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("ExperimentSummaryModel(");
boolean first = true;
sb.append("experimentId:");
if (this.experimentId == null) {
sb.append("null");
} else {
sb.append(this.experimentId);
}
first = false;
if (!first) sb.append(", ");
sb.append("projectId:");
if (this.projectId == null) {
sb.append("null");
} else {
sb.append(this.projectId);
}
first = false;
if (!first) sb.append(", ");
sb.append("gatewayId:");
if (this.gatewayId == null) {
sb.append("null");
} else {
sb.append(this.gatewayId);
}
first = false;
if (isSetCreationTime()) {
if (!first) sb.append(", ");
sb.append("creationTime:");
sb.append(this.creationTime);
first = false;
}
if (!first) sb.append(", ");
sb.append("userName:");
if (this.userName == null) {
sb.append("null");
} else {
sb.append(this.userName);
}
first = false;
if (!first) sb.append(", ");
sb.append("name:");
if (this.name == null) {
sb.append("null");
} else {
sb.append(this.name);
}
first = false;
if (isSetDescription()) {
if (!first) sb.append(", ");
sb.append("description:");
if (this.description == null) {
sb.append("null");
} else {
sb.append(this.description);
}
first = false;
}
if (isSetExecutionId()) {
if (!first) sb.append(", ");
sb.append("executionId:");
if (this.executionId == null) {
sb.append("null");
} else {
sb.append(this.executionId);
}
first = false;
}
if (isSetResourceHostId()) {
if (!first) sb.append(", ");
sb.append("resourceHostId:");
if (this.resourceHostId == null) {
sb.append("null");
} else {
sb.append(this.resourceHostId);
}
first = false;
}
if (isSetExperimentStatus()) {
if (!first) sb.append(", ");
sb.append("experimentStatus:");
if (this.experimentStatus == null) {
sb.append("null");
} else {
sb.append(this.experimentStatus);
}
first = false;
}
if (isSetStatusUpdateTime()) {
if (!first) sb.append(", ");
sb.append("statusUpdateTime:");
sb.append(this.statusUpdateTime);
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
if (!isSetExperimentId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentId' is unset! Struct:" + toString());
}
if (!isSetProjectId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' is unset! Struct:" + toString());
}
if (!isSetGatewayId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' is unset! Struct:" + toString());
}
if (!isSetUserName()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' is unset! Struct:" + toString());
}
if (!isSetName()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! 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 ExperimentSummaryModelStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public ExperimentSummaryModelStandardScheme getScheme() {
return new ExperimentSummaryModelStandardScheme();
}
}
private static class ExperimentSummaryModelStandardScheme extends org.apache.thrift.scheme.StandardScheme<ExperimentSummaryModel> {
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot, ExperimentSummaryModel 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: // EXPERIMENT_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.experimentId = iprot.readString();
struct.setExperimentIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // PROJECT_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.projectId = iprot.readString();
struct.setProjectIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // GATEWAY_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.gatewayId = iprot.readString();
struct.setGatewayIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // CREATION_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.creationTime = iprot.readI64();
struct.setCreationTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // USER_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.userName = iprot.readString();
struct.setUserNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // 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 7: // DESCRIPTION
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.description = iprot.readString();
struct.setDescriptionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // EXECUTION_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.executionId = iprot.readString();
struct.setExecutionIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // RESOURCE_HOST_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.resourceHostId = iprot.readString();
struct.setResourceHostIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // EXPERIMENT_STATUS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.experimentStatus = iprot.readString();
struct.setExperimentStatusIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // STATUS_UPDATE_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.statusUpdateTime = iprot.readI64();
struct.setStatusUpdateTimeIsSet(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();
struct.validate();
}
@Override
public void write(org.apache.thrift.protocol.TProtocol oprot, ExperimentSummaryModel struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.experimentId != null) {
oprot.writeFieldBegin(EXPERIMENT_ID_FIELD_DESC);
oprot.writeString(struct.experimentId);
oprot.writeFieldEnd();
}
if (struct.projectId != null) {
oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC);
oprot.writeString(struct.projectId);
oprot.writeFieldEnd();
}
if (struct.gatewayId != null) {
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
oprot.writeString(struct.gatewayId);
oprot.writeFieldEnd();
}
if (struct.isSetCreationTime()) {
oprot.writeFieldBegin(CREATION_TIME_FIELD_DESC);
oprot.writeI64(struct.creationTime);
oprot.writeFieldEnd();
}
if (struct.userName != null) {
oprot.writeFieldBegin(USER_NAME_FIELD_DESC);
oprot.writeString(struct.userName);
oprot.writeFieldEnd();
}
if (struct.name != null) {
oprot.writeFieldBegin(NAME_FIELD_DESC);
oprot.writeString(struct.name);
oprot.writeFieldEnd();
}
if (struct.description != null) {
if (struct.isSetDescription()) {
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
oprot.writeString(struct.description);
oprot.writeFieldEnd();
}
}
if (struct.executionId != null) {
if (struct.isSetExecutionId()) {
oprot.writeFieldBegin(EXECUTION_ID_FIELD_DESC);
oprot.writeString(struct.executionId);
oprot.writeFieldEnd();
}
}
if (struct.resourceHostId != null) {
if (struct.isSetResourceHostId()) {
oprot.writeFieldBegin(RESOURCE_HOST_ID_FIELD_DESC);
oprot.writeString(struct.resourceHostId);
oprot.writeFieldEnd();
}
}
if (struct.experimentStatus != null) {
if (struct.isSetExperimentStatus()) {
oprot.writeFieldBegin(EXPERIMENT_STATUS_FIELD_DESC);
oprot.writeString(struct.experimentStatus);
oprot.writeFieldEnd();
}
}
if (struct.isSetStatusUpdateTime()) {
oprot.writeFieldBegin(STATUS_UPDATE_TIME_FIELD_DESC);
oprot.writeI64(struct.statusUpdateTime);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class ExperimentSummaryModelTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public ExperimentSummaryModelTupleScheme getScheme() {
return new ExperimentSummaryModelTupleScheme();
}
}
private static class ExperimentSummaryModelTupleScheme extends org.apache.thrift.scheme.TupleScheme<ExperimentSummaryModel> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ExperimentSummaryModel struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeString(struct.experimentId);
oprot.writeString(struct.projectId);
oprot.writeString(struct.gatewayId);
oprot.writeString(struct.userName);
oprot.writeString(struct.name);
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetCreationTime()) {
optionals.set(0);
}
if (struct.isSetDescription()) {
optionals.set(1);
}
if (struct.isSetExecutionId()) {
optionals.set(2);
}
if (struct.isSetResourceHostId()) {
optionals.set(3);
}
if (struct.isSetExperimentStatus()) {
optionals.set(4);
}
if (struct.isSetStatusUpdateTime()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetCreationTime()) {
oprot.writeI64(struct.creationTime);
}
if (struct.isSetDescription()) {
oprot.writeString(struct.description);
}
if (struct.isSetExecutionId()) {
oprot.writeString(struct.executionId);
}
if (struct.isSetResourceHostId()) {
oprot.writeString(struct.resourceHostId);
}
if (struct.isSetExperimentStatus()) {
oprot.writeString(struct.experimentStatus);
}
if (struct.isSetStatusUpdateTime()) {
oprot.writeI64(struct.statusUpdateTime);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ExperimentSummaryModel struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.experimentId = iprot.readString();
struct.setExperimentIdIsSet(true);
struct.projectId = iprot.readString();
struct.setProjectIdIsSet(true);
struct.gatewayId = iprot.readString();
struct.setGatewayIdIsSet(true);
struct.userName = iprot.readString();
struct.setUserNameIsSet(true);
struct.name = iprot.readString();
struct.setNameIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
struct.creationTime = iprot.readI64();
struct.setCreationTimeIsSet(true);
}
if (incoming.get(1)) {
struct.description = iprot.readString();
struct.setDescriptionIsSet(true);
}
if (incoming.get(2)) {
struct.executionId = iprot.readString();
struct.setExecutionIdIsSet(true);
}
if (incoming.get(3)) {
struct.resourceHostId = iprot.readString();
struct.setResourceHostIdIsSet(true);
}
if (incoming.get(4)) {
struct.experimentStatus = iprot.readString();
struct.setExperimentStatusIsSet(true);
}
if (incoming.get(5)) {
struct.statusUpdateTime = iprot.readI64();
struct.setStatusUpdateTimeIsSet(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();
}
}