blob: 6e3dca1211fd219a5503955a90f7176655ca0044 [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.workflow;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.18.1)")
public class AiravataWorkflow implements org.apache.thrift.TBase<AiravataWorkflow, AiravataWorkflow._Fields>, java.io.Serializable, Cloneable, Comparable<AiravataWorkflow> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AiravataWorkflow");
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1);
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)2);
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)3);
private static final org.apache.thrift.protocol.TField APPLICATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("applications", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.protocol.TField HANDLERS_FIELD_DESC = new org.apache.thrift.protocol.TField("handlers", org.apache.thrift.protocol.TType.LIST, (short)5);
private static final org.apache.thrift.protocol.TField CONNECTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("connections", org.apache.thrift.protocol.TType.LIST, (short)6);
private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)7);
private static final org.apache.thrift.protocol.TField ERRORS_FIELD_DESC = new org.apache.thrift.protocol.TField("errors", org.apache.thrift.protocol.TType.LIST, (short)8);
private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)9);
private static final org.apache.thrift.protocol.TField UPDATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedAt", org.apache.thrift.protocol.TType.I64, (short)10);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new AiravataWorkflowStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new AiravataWorkflowTupleSchemeFactory();
private @org.apache.thrift.annotation.Nullable java.lang.String id; // required
private @org.apache.thrift.annotation.Nullable java.lang.String experimentId; // required
private @org.apache.thrift.annotation.Nullable java.lang.String description; // optional
private @org.apache.thrift.annotation.Nullable java.util.List<WorkflowApplication> applications; // optional
private @org.apache.thrift.annotation.Nullable java.util.List<WorkflowHandler> handlers; // optional
private @org.apache.thrift.annotation.Nullable java.util.List<WorkflowConnection> connections; // optional
private @org.apache.thrift.annotation.Nullable java.util.List<WorkflowStatus> statuses; // optional
private @org.apache.thrift.annotation.Nullable java.util.List<org.apache.airavata.model.commons.ErrorModel> errors; // optional
private long createdAt; // optional
private long updatedAt; // 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 {
ID((short)1, "id"),
EXPERIMENT_ID((short)2, "experimentId"),
DESCRIPTION((short)3, "description"),
APPLICATIONS((short)4, "applications"),
HANDLERS((short)5, "handlers"),
CONNECTIONS((short)6, "connections"),
STATUSES((short)7, "statuses"),
ERRORS((short)8, "errors"),
CREATED_AT((short)9, "createdAt"),
UPDATED_AT((short)10, "updatedAt");
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: // ID
return ID;
case 2: // EXPERIMENT_ID
return EXPERIMENT_ID;
case 3: // DESCRIPTION
return DESCRIPTION;
case 4: // APPLICATIONS
return APPLICATIONS;
case 5: // HANDLERS
return HANDLERS;
case 6: // CONNECTIONS
return CONNECTIONS;
case 7: // STATUSES
return STATUSES;
case 8: // ERRORS
return ERRORS;
case 9: // CREATED_AT
return CREATED_AT;
case 10: // UPDATED_AT
return UPDATED_AT;
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 __CREATEDAT_ISSET_ID = 0;
private static final int __UPDATEDAT_ISSET_ID = 1;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.DESCRIPTION,_Fields.APPLICATIONS,_Fields.HANDLERS,_Fields.CONNECTIONS,_Fields.STATUSES,_Fields.ERRORS,_Fields.CREATED_AT,_Fields.UPDATED_AT};
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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
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.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.APPLICATIONS, new org.apache.thrift.meta_data.FieldMetaData("applications", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, WorkflowApplication.class))));
tmpMap.put(_Fields.HANDLERS, new org.apache.thrift.meta_data.FieldMetaData("handlers", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, WorkflowHandler.class))));
tmpMap.put(_Fields.CONNECTIONS, new org.apache.thrift.meta_data.FieldMetaData("connections", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, WorkflowConnection.class))));
tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, WorkflowStatus.class))));
tmpMap.put(_Fields.ERRORS, new org.apache.thrift.meta_data.FieldMetaData("errors", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, org.apache.airavata.model.commons.ErrorModel.class))));
tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.UPDATED_AT, new org.apache.thrift.meta_data.FieldMetaData("updatedAt", 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(AiravataWorkflow.class, metaDataMap);
}
public AiravataWorkflow() {
this.id = "DO_NOT_SET_AT_CLIENTS";
}
public AiravataWorkflow(
java.lang.String id,
java.lang.String experimentId)
{
this();
this.id = id;
this.experimentId = experimentId;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public AiravataWorkflow(AiravataWorkflow other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetId()) {
this.id = other.id;
}
if (other.isSetExperimentId()) {
this.experimentId = other.experimentId;
}
if (other.isSetDescription()) {
this.description = other.description;
}
if (other.isSetApplications()) {
java.util.List<WorkflowApplication> __this__applications = new java.util.ArrayList<WorkflowApplication>(other.applications.size());
for (WorkflowApplication other_element : other.applications) {
__this__applications.add(new WorkflowApplication(other_element));
}
this.applications = __this__applications;
}
if (other.isSetHandlers()) {
java.util.List<WorkflowHandler> __this__handlers = new java.util.ArrayList<WorkflowHandler>(other.handlers.size());
for (WorkflowHandler other_element : other.handlers) {
__this__handlers.add(new WorkflowHandler(other_element));
}
this.handlers = __this__handlers;
}
if (other.isSetConnections()) {
java.util.List<WorkflowConnection> __this__connections = new java.util.ArrayList<WorkflowConnection>(other.connections.size());
for (WorkflowConnection other_element : other.connections) {
__this__connections.add(new WorkflowConnection(other_element));
}
this.connections = __this__connections;
}
if (other.isSetStatuses()) {
java.util.List<WorkflowStatus> __this__statuses = new java.util.ArrayList<WorkflowStatus>(other.statuses.size());
for (WorkflowStatus other_element : other.statuses) {
__this__statuses.add(new WorkflowStatus(other_element));
}
this.statuses = __this__statuses;
}
if (other.isSetErrors()) {
java.util.List<org.apache.airavata.model.commons.ErrorModel> __this__errors = new java.util.ArrayList<org.apache.airavata.model.commons.ErrorModel>(other.errors.size());
for (org.apache.airavata.model.commons.ErrorModel other_element : other.errors) {
__this__errors.add(new org.apache.airavata.model.commons.ErrorModel(other_element));
}
this.errors = __this__errors;
}
this.createdAt = other.createdAt;
this.updatedAt = other.updatedAt;
}
@Override
public AiravataWorkflow deepCopy() {
return new AiravataWorkflow(this);
}
@Override
public void clear() {
this.id = "DO_NOT_SET_AT_CLIENTS";
this.experimentId = null;
this.description = null;
this.applications = null;
this.handlers = null;
this.connections = null;
this.statuses = null;
this.errors = null;
setCreatedAtIsSet(false);
this.createdAt = 0;
setUpdatedAtIsSet(false);
this.updatedAt = 0;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getId() {
return this.id;
}
public void setId(@org.apache.thrift.annotation.Nullable java.lang.String id) {
this.id = id;
}
public void unsetId() {
this.id = null;
}
/** Returns true if field id is set (has been assigned a value) and false otherwise */
public boolean isSetId() {
return this.id != null;
}
public void setIdIsSet(boolean value) {
if (!value) {
this.id = null;
}
}
@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 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;
}
}
public int getApplicationsSize() {
return (this.applications == null) ? 0 : this.applications.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<WorkflowApplication> getApplicationsIterator() {
return (this.applications == null) ? null : this.applications.iterator();
}
public void addToApplications(WorkflowApplication elem) {
if (this.applications == null) {
this.applications = new java.util.ArrayList<WorkflowApplication>();
}
this.applications.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<WorkflowApplication> getApplications() {
return this.applications;
}
public void setApplications(@org.apache.thrift.annotation.Nullable java.util.List<WorkflowApplication> applications) {
this.applications = applications;
}
public void unsetApplications() {
this.applications = null;
}
/** Returns true if field applications is set (has been assigned a value) and false otherwise */
public boolean isSetApplications() {
return this.applications != null;
}
public void setApplicationsIsSet(boolean value) {
if (!value) {
this.applications = null;
}
}
public int getHandlersSize() {
return (this.handlers == null) ? 0 : this.handlers.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<WorkflowHandler> getHandlersIterator() {
return (this.handlers == null) ? null : this.handlers.iterator();
}
public void addToHandlers(WorkflowHandler elem) {
if (this.handlers == null) {
this.handlers = new java.util.ArrayList<WorkflowHandler>();
}
this.handlers.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<WorkflowHandler> getHandlers() {
return this.handlers;
}
public void setHandlers(@org.apache.thrift.annotation.Nullable java.util.List<WorkflowHandler> handlers) {
this.handlers = handlers;
}
public void unsetHandlers() {
this.handlers = null;
}
/** Returns true if field handlers is set (has been assigned a value) and false otherwise */
public boolean isSetHandlers() {
return this.handlers != null;
}
public void setHandlersIsSet(boolean value) {
if (!value) {
this.handlers = null;
}
}
public int getConnectionsSize() {
return (this.connections == null) ? 0 : this.connections.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<WorkflowConnection> getConnectionsIterator() {
return (this.connections == null) ? null : this.connections.iterator();
}
public void addToConnections(WorkflowConnection elem) {
if (this.connections == null) {
this.connections = new java.util.ArrayList<WorkflowConnection>();
}
this.connections.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<WorkflowConnection> getConnections() {
return this.connections;
}
public void setConnections(@org.apache.thrift.annotation.Nullable java.util.List<WorkflowConnection> connections) {
this.connections = connections;
}
public void unsetConnections() {
this.connections = null;
}
/** Returns true if field connections is set (has been assigned a value) and false otherwise */
public boolean isSetConnections() {
return this.connections != null;
}
public void setConnectionsIsSet(boolean value) {
if (!value) {
this.connections = null;
}
}
public int getStatusesSize() {
return (this.statuses == null) ? 0 : this.statuses.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<WorkflowStatus> getStatusesIterator() {
return (this.statuses == null) ? null : this.statuses.iterator();
}
public void addToStatuses(WorkflowStatus elem) {
if (this.statuses == null) {
this.statuses = new java.util.ArrayList<WorkflowStatus>();
}
this.statuses.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<WorkflowStatus> getStatuses() {
return this.statuses;
}
public void setStatuses(@org.apache.thrift.annotation.Nullable java.util.List<WorkflowStatus> statuses) {
this.statuses = statuses;
}
public void unsetStatuses() {
this.statuses = null;
}
/** Returns true if field statuses is set (has been assigned a value) and false otherwise */
public boolean isSetStatuses() {
return this.statuses != null;
}
public void setStatusesIsSet(boolean value) {
if (!value) {
this.statuses = null;
}
}
public int getErrorsSize() {
return (this.errors == null) ? 0 : this.errors.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.airavata.model.commons.ErrorModel> getErrorsIterator() {
return (this.errors == null) ? null : this.errors.iterator();
}
public void addToErrors(org.apache.airavata.model.commons.ErrorModel elem) {
if (this.errors == null) {
this.errors = new java.util.ArrayList<org.apache.airavata.model.commons.ErrorModel>();
}
this.errors.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.airavata.model.commons.ErrorModel> getErrors() {
return this.errors;
}
public void setErrors(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.airavata.model.commons.ErrorModel> errors) {
this.errors = errors;
}
public void unsetErrors() {
this.errors = null;
}
/** Returns true if field errors is set (has been assigned a value) and false otherwise */
public boolean isSetErrors() {
return this.errors != null;
}
public void setErrorsIsSet(boolean value) {
if (!value) {
this.errors = null;
}
}
public long getCreatedAt() {
return this.createdAt;
}
public void setCreatedAt(long createdAt) {
this.createdAt = createdAt;
setCreatedAtIsSet(true);
}
public void unsetCreatedAt() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CREATEDAT_ISSET_ID);
}
/** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
public boolean isSetCreatedAt() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATEDAT_ISSET_ID);
}
public void setCreatedAtIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATEDAT_ISSET_ID, value);
}
public long getUpdatedAt() {
return this.updatedAt;
}
public void setUpdatedAt(long updatedAt) {
this.updatedAt = updatedAt;
setUpdatedAtIsSet(true);
}
public void unsetUpdatedAt() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __UPDATEDAT_ISSET_ID);
}
/** Returns true if field updatedAt is set (has been assigned a value) and false otherwise */
public boolean isSetUpdatedAt() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPDATEDAT_ISSET_ID);
}
public void setUpdatedAtIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UPDATEDAT_ISSET_ID, value);
}
@Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case ID:
if (value == null) {
unsetId();
} else {
setId((java.lang.String)value);
}
break;
case EXPERIMENT_ID:
if (value == null) {
unsetExperimentId();
} else {
setExperimentId((java.lang.String)value);
}
break;
case DESCRIPTION:
if (value == null) {
unsetDescription();
} else {
setDescription((java.lang.String)value);
}
break;
case APPLICATIONS:
if (value == null) {
unsetApplications();
} else {
setApplications((java.util.List<WorkflowApplication>)value);
}
break;
case HANDLERS:
if (value == null) {
unsetHandlers();
} else {
setHandlers((java.util.List<WorkflowHandler>)value);
}
break;
case CONNECTIONS:
if (value == null) {
unsetConnections();
} else {
setConnections((java.util.List<WorkflowConnection>)value);
}
break;
case STATUSES:
if (value == null) {
unsetStatuses();
} else {
setStatuses((java.util.List<WorkflowStatus>)value);
}
break;
case ERRORS:
if (value == null) {
unsetErrors();
} else {
setErrors((java.util.List<org.apache.airavata.model.commons.ErrorModel>)value);
}
break;
case CREATED_AT:
if (value == null) {
unsetCreatedAt();
} else {
setCreatedAt((java.lang.Long)value);
}
break;
case UPDATED_AT:
if (value == null) {
unsetUpdatedAt();
} else {
setUpdatedAt((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
@Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case ID:
return getId();
case EXPERIMENT_ID:
return getExperimentId();
case DESCRIPTION:
return getDescription();
case APPLICATIONS:
return getApplications();
case HANDLERS:
return getHandlers();
case CONNECTIONS:
return getConnections();
case STATUSES:
return getStatuses();
case ERRORS:
return getErrors();
case CREATED_AT:
return getCreatedAt();
case UPDATED_AT:
return getUpdatedAt();
}
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 ID:
return isSetId();
case EXPERIMENT_ID:
return isSetExperimentId();
case DESCRIPTION:
return isSetDescription();
case APPLICATIONS:
return isSetApplications();
case HANDLERS:
return isSetHandlers();
case CONNECTIONS:
return isSetConnections();
case STATUSES:
return isSetStatuses();
case ERRORS:
return isSetErrors();
case CREATED_AT:
return isSetCreatedAt();
case UPDATED_AT:
return isSetUpdatedAt();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof AiravataWorkflow)
return this.equals((AiravataWorkflow)that);
return false;
}
public boolean equals(AiravataWorkflow that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_id = true && this.isSetId();
boolean that_present_id = true && that.isSetId();
if (this_present_id || that_present_id) {
if (!(this_present_id && that_present_id))
return false;
if (!this.id.equals(that.id))
return false;
}
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_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_applications = true && this.isSetApplications();
boolean that_present_applications = true && that.isSetApplications();
if (this_present_applications || that_present_applications) {
if (!(this_present_applications && that_present_applications))
return false;
if (!this.applications.equals(that.applications))
return false;
}
boolean this_present_handlers = true && this.isSetHandlers();
boolean that_present_handlers = true && that.isSetHandlers();
if (this_present_handlers || that_present_handlers) {
if (!(this_present_handlers && that_present_handlers))
return false;
if (!this.handlers.equals(that.handlers))
return false;
}
boolean this_present_connections = true && this.isSetConnections();
boolean that_present_connections = true && that.isSetConnections();
if (this_present_connections || that_present_connections) {
if (!(this_present_connections && that_present_connections))
return false;
if (!this.connections.equals(that.connections))
return false;
}
boolean this_present_statuses = true && this.isSetStatuses();
boolean that_present_statuses = true && that.isSetStatuses();
if (this_present_statuses || that_present_statuses) {
if (!(this_present_statuses && that_present_statuses))
return false;
if (!this.statuses.equals(that.statuses))
return false;
}
boolean this_present_errors = true && this.isSetErrors();
boolean that_present_errors = true && that.isSetErrors();
if (this_present_errors || that_present_errors) {
if (!(this_present_errors && that_present_errors))
return false;
if (!this.errors.equals(that.errors))
return false;
}
boolean this_present_createdAt = true && this.isSetCreatedAt();
boolean that_present_createdAt = true && that.isSetCreatedAt();
if (this_present_createdAt || that_present_createdAt) {
if (!(this_present_createdAt && that_present_createdAt))
return false;
if (this.createdAt != that.createdAt)
return false;
}
boolean this_present_updatedAt = true && this.isSetUpdatedAt();
boolean that_present_updatedAt = true && that.isSetUpdatedAt();
if (this_present_updatedAt || that_present_updatedAt) {
if (!(this_present_updatedAt && that_present_updatedAt))
return false;
if (this.updatedAt != that.updatedAt)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetId()) ? 131071 : 524287);
if (isSetId())
hashCode = hashCode * 8191 + id.hashCode();
hashCode = hashCode * 8191 + ((isSetExperimentId()) ? 131071 : 524287);
if (isSetExperimentId())
hashCode = hashCode * 8191 + experimentId.hashCode();
hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287);
if (isSetDescription())
hashCode = hashCode * 8191 + description.hashCode();
hashCode = hashCode * 8191 + ((isSetApplications()) ? 131071 : 524287);
if (isSetApplications())
hashCode = hashCode * 8191 + applications.hashCode();
hashCode = hashCode * 8191 + ((isSetHandlers()) ? 131071 : 524287);
if (isSetHandlers())
hashCode = hashCode * 8191 + handlers.hashCode();
hashCode = hashCode * 8191 + ((isSetConnections()) ? 131071 : 524287);
if (isSetConnections())
hashCode = hashCode * 8191 + connections.hashCode();
hashCode = hashCode * 8191 + ((isSetStatuses()) ? 131071 : 524287);
if (isSetStatuses())
hashCode = hashCode * 8191 + statuses.hashCode();
hashCode = hashCode * 8191 + ((isSetErrors()) ? 131071 : 524287);
if (isSetErrors())
hashCode = hashCode * 8191 + errors.hashCode();
hashCode = hashCode * 8191 + ((isSetCreatedAt()) ? 131071 : 524287);
if (isSetCreatedAt())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createdAt);
hashCode = hashCode * 8191 + ((isSetUpdatedAt()) ? 131071 : 524287);
if (isSetUpdatedAt())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updatedAt);
return hashCode;
}
@Override
public int compareTo(AiravataWorkflow other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetId(), other.isSetId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
if (lastComparison != 0) {
return lastComparison;
}
}
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(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(isSetApplications(), other.isSetApplications());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetApplications()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applications, other.applications);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetHandlers(), other.isSetHandlers());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetHandlers()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handlers, other.handlers);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetConnections(), other.isSetConnections());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetConnections()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.connections, other.connections);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetStatuses(), other.isSetStatuses());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetStatuses()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, other.statuses);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetErrors(), other.isSetErrors());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetErrors()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errors, other.errors);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCreatedAt(), other.isSetCreatedAt());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCreatedAt()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, other.createdAt);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUpdatedAt(), other.isSetUpdatedAt());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUpdatedAt()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedAt, other.updatedAt);
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("AiravataWorkflow(");
boolean first = true;
sb.append("id:");
if (this.id == null) {
sb.append("null");
} else {
sb.append(this.id);
}
first = false;
if (!first) sb.append(", ");
sb.append("experimentId:");
if (this.experimentId == null) {
sb.append("null");
} else {
sb.append(this.experimentId);
}
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 (isSetApplications()) {
if (!first) sb.append(", ");
sb.append("applications:");
if (this.applications == null) {
sb.append("null");
} else {
sb.append(this.applications);
}
first = false;
}
if (isSetHandlers()) {
if (!first) sb.append(", ");
sb.append("handlers:");
if (this.handlers == null) {
sb.append("null");
} else {
sb.append(this.handlers);
}
first = false;
}
if (isSetConnections()) {
if (!first) sb.append(", ");
sb.append("connections:");
if (this.connections == null) {
sb.append("null");
} else {
sb.append(this.connections);
}
first = false;
}
if (isSetStatuses()) {
if (!first) sb.append(", ");
sb.append("statuses:");
if (this.statuses == null) {
sb.append("null");
} else {
sb.append(this.statuses);
}
first = false;
}
if (isSetErrors()) {
if (!first) sb.append(", ");
sb.append("errors:");
if (this.errors == null) {
sb.append("null");
} else {
sb.append(this.errors);
}
first = false;
}
if (isSetCreatedAt()) {
if (!first) sb.append(", ");
sb.append("createdAt:");
sb.append(this.createdAt);
first = false;
}
if (isSetUpdatedAt()) {
if (!first) sb.append(", ");
sb.append("updatedAt:");
sb.append(this.updatedAt);
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
if (!isSetId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString());
}
if (!isSetExperimentId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentId' 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 AiravataWorkflowStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public AiravataWorkflowStandardScheme getScheme() {
return new AiravataWorkflowStandardScheme();
}
}
private static class AiravataWorkflowStandardScheme extends org.apache.thrift.scheme.StandardScheme<AiravataWorkflow> {
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot, AiravataWorkflow 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: // ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.id = iprot.readString();
struct.setIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // 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 3: // 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 4: // APPLICATIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
struct.applications = new java.util.ArrayList<WorkflowApplication>(_list48.size);
@org.apache.thrift.annotation.Nullable WorkflowApplication _elem49;
for (int _i50 = 0; _i50 < _list48.size; ++_i50)
{
_elem49 = new WorkflowApplication();
_elem49.read(iprot);
struct.applications.add(_elem49);
}
iprot.readListEnd();
}
struct.setApplicationsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // HANDLERS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list51 = iprot.readListBegin();
struct.handlers = new java.util.ArrayList<WorkflowHandler>(_list51.size);
@org.apache.thrift.annotation.Nullable WorkflowHandler _elem52;
for (int _i53 = 0; _i53 < _list51.size; ++_i53)
{
_elem52 = new WorkflowHandler();
_elem52.read(iprot);
struct.handlers.add(_elem52);
}
iprot.readListEnd();
}
struct.setHandlersIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // CONNECTIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list54 = iprot.readListBegin();
struct.connections = new java.util.ArrayList<WorkflowConnection>(_list54.size);
@org.apache.thrift.annotation.Nullable WorkflowConnection _elem55;
for (int _i56 = 0; _i56 < _list54.size; ++_i56)
{
_elem55 = new WorkflowConnection();
_elem55.read(iprot);
struct.connections.add(_elem55);
}
iprot.readListEnd();
}
struct.setConnectionsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // STATUSES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
struct.statuses = new java.util.ArrayList<WorkflowStatus>(_list57.size);
@org.apache.thrift.annotation.Nullable WorkflowStatus _elem58;
for (int _i59 = 0; _i59 < _list57.size; ++_i59)
{
_elem58 = new WorkflowStatus();
_elem58.read(iprot);
struct.statuses.add(_elem58);
}
iprot.readListEnd();
}
struct.setStatusesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // ERRORS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
struct.errors = new java.util.ArrayList<org.apache.airavata.model.commons.ErrorModel>(_list60.size);
@org.apache.thrift.annotation.Nullable org.apache.airavata.model.commons.ErrorModel _elem61;
for (int _i62 = 0; _i62 < _list60.size; ++_i62)
{
_elem61 = new org.apache.airavata.model.commons.ErrorModel();
_elem61.read(iprot);
struct.errors.add(_elem61);
}
iprot.readListEnd();
}
struct.setErrorsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // CREATED_AT
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.createdAt = iprot.readI64();
struct.setCreatedAtIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // UPDATED_AT
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.updatedAt = iprot.readI64();
struct.setUpdatedAtIsSet(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, AiravataWorkflow struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.id != null) {
oprot.writeFieldBegin(ID_FIELD_DESC);
oprot.writeString(struct.id);
oprot.writeFieldEnd();
}
if (struct.experimentId != null) {
oprot.writeFieldBegin(EXPERIMENT_ID_FIELD_DESC);
oprot.writeString(struct.experimentId);
oprot.writeFieldEnd();
}
if (struct.description != null) {
if (struct.isSetDescription()) {
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
oprot.writeString(struct.description);
oprot.writeFieldEnd();
}
}
if (struct.applications != null) {
if (struct.isSetApplications()) {
oprot.writeFieldBegin(APPLICATIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.applications.size()));
for (WorkflowApplication _iter63 : struct.applications)
{
_iter63.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.handlers != null) {
if (struct.isSetHandlers()) {
oprot.writeFieldBegin(HANDLERS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.handlers.size()));
for (WorkflowHandler _iter64 : struct.handlers)
{
_iter64.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.connections != null) {
if (struct.isSetConnections()) {
oprot.writeFieldBegin(CONNECTIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.connections.size()));
for (WorkflowConnection _iter65 : struct.connections)
{
_iter65.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.statuses != null) {
if (struct.isSetStatuses()) {
oprot.writeFieldBegin(STATUSES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.statuses.size()));
for (WorkflowStatus _iter66 : struct.statuses)
{
_iter66.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.errors != null) {
if (struct.isSetErrors()) {
oprot.writeFieldBegin(ERRORS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.errors.size()));
for (org.apache.airavata.model.commons.ErrorModel _iter67 : struct.errors)
{
_iter67.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.isSetCreatedAt()) {
oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
oprot.writeI64(struct.createdAt);
oprot.writeFieldEnd();
}
if (struct.isSetUpdatedAt()) {
oprot.writeFieldBegin(UPDATED_AT_FIELD_DESC);
oprot.writeI64(struct.updatedAt);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class AiravataWorkflowTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public AiravataWorkflowTupleScheme getScheme() {
return new AiravataWorkflowTupleScheme();
}
}
private static class AiravataWorkflowTupleScheme extends org.apache.thrift.scheme.TupleScheme<AiravataWorkflow> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, AiravataWorkflow struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeString(struct.id);
oprot.writeString(struct.experimentId);
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetDescription()) {
optionals.set(0);
}
if (struct.isSetApplications()) {
optionals.set(1);
}
if (struct.isSetHandlers()) {
optionals.set(2);
}
if (struct.isSetConnections()) {
optionals.set(3);
}
if (struct.isSetStatuses()) {
optionals.set(4);
}
if (struct.isSetErrors()) {
optionals.set(5);
}
if (struct.isSetCreatedAt()) {
optionals.set(6);
}
if (struct.isSetUpdatedAt()) {
optionals.set(7);
}
oprot.writeBitSet(optionals, 8);
if (struct.isSetDescription()) {
oprot.writeString(struct.description);
}
if (struct.isSetApplications()) {
{
oprot.writeI32(struct.applications.size());
for (WorkflowApplication _iter68 : struct.applications)
{
_iter68.write(oprot);
}
}
}
if (struct.isSetHandlers()) {
{
oprot.writeI32(struct.handlers.size());
for (WorkflowHandler _iter69 : struct.handlers)
{
_iter69.write(oprot);
}
}
}
if (struct.isSetConnections()) {
{
oprot.writeI32(struct.connections.size());
for (WorkflowConnection _iter70 : struct.connections)
{
_iter70.write(oprot);
}
}
}
if (struct.isSetStatuses()) {
{
oprot.writeI32(struct.statuses.size());
for (WorkflowStatus _iter71 : struct.statuses)
{
_iter71.write(oprot);
}
}
}
if (struct.isSetErrors()) {
{
oprot.writeI32(struct.errors.size());
for (org.apache.airavata.model.commons.ErrorModel _iter72 : struct.errors)
{
_iter72.write(oprot);
}
}
}
if (struct.isSetCreatedAt()) {
oprot.writeI64(struct.createdAt);
}
if (struct.isSetUpdatedAt()) {
oprot.writeI64(struct.updatedAt);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, AiravataWorkflow struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.id = iprot.readString();
struct.setIdIsSet(true);
struct.experimentId = iprot.readString();
struct.setExperimentIdIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(8);
if (incoming.get(0)) {
struct.description = iprot.readString();
struct.setDescriptionIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list73 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.applications = new java.util.ArrayList<WorkflowApplication>(_list73.size);
@org.apache.thrift.annotation.Nullable WorkflowApplication _elem74;
for (int _i75 = 0; _i75 < _list73.size; ++_i75)
{
_elem74 = new WorkflowApplication();
_elem74.read(iprot);
struct.applications.add(_elem74);
}
}
struct.setApplicationsIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list76 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.handlers = new java.util.ArrayList<WorkflowHandler>(_list76.size);
@org.apache.thrift.annotation.Nullable WorkflowHandler _elem77;
for (int _i78 = 0; _i78 < _list76.size; ++_i78)
{
_elem77 = new WorkflowHandler();
_elem77.read(iprot);
struct.handlers.add(_elem77);
}
}
struct.setHandlersIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TList _list79 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.connections = new java.util.ArrayList<WorkflowConnection>(_list79.size);
@org.apache.thrift.annotation.Nullable WorkflowConnection _elem80;
for (int _i81 = 0; _i81 < _list79.size; ++_i81)
{
_elem80 = new WorkflowConnection();
_elem80.read(iprot);
struct.connections.add(_elem80);
}
}
struct.setConnectionsIsSet(true);
}
if (incoming.get(4)) {
{
org.apache.thrift.protocol.TList _list82 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.statuses = new java.util.ArrayList<WorkflowStatus>(_list82.size);
@org.apache.thrift.annotation.Nullable WorkflowStatus _elem83;
for (int _i84 = 0; _i84 < _list82.size; ++_i84)
{
_elem83 = new WorkflowStatus();
_elem83.read(iprot);
struct.statuses.add(_elem83);
}
}
struct.setStatusesIsSet(true);
}
if (incoming.get(5)) {
{
org.apache.thrift.protocol.TList _list85 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.errors = new java.util.ArrayList<org.apache.airavata.model.commons.ErrorModel>(_list85.size);
@org.apache.thrift.annotation.Nullable org.apache.airavata.model.commons.ErrorModel _elem86;
for (int _i87 = 0; _i87 < _list85.size; ++_i87)
{
_elem86 = new org.apache.airavata.model.commons.ErrorModel();
_elem86.read(iprot);
struct.errors.add(_elem86);
}
}
struct.setErrorsIsSet(true);
}
if (incoming.get(6)) {
struct.createdAt = iprot.readI64();
struct.setCreatedAtIsSet(true);
}
if (incoming.get(7)) {
struct.updatedAt = iprot.readI64();
struct.setUpdatedAtIsSet(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();
}
}