public void write(org.apache.thrift.protocol.TProtocol oprot, Comment struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } if (struct.markup != null) { if (struct.isSetMarkup()) { oprot.writeFieldBegin(MARKUP_FIELD_DESC); oprot.writeI32(struct.markup.getValue()); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Comment struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } if (struct.markup != null) { if (struct.isSetMarkup()) { oprot.writeFieldBegin(MARKUP_FIELD_DESC); oprot.writeI32(struct.markup.getValue()); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (type == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' was not present! Struct: " + toString()); } // check for sub-struct validity if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (type == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' was not present! Struct: " + toString()); } // check for sub-struct validity if (comment != null) { comment.validate(); } }
struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields if (name == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); } if (type == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' was not present! Struct: " + toString()); } // check for sub-struct validity if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (name == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); } if (type == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' was not present! Struct: " + toString()); } // check for sub-struct validity if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (name == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); } // alas, we cannot check 'enabled' because it's a primitive and you chose the non-beans generator. if (repositoryName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'repositoryName' was not present! Struct: " + toString()); } if (query == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'query' was not present! Struct: " + toString()); } // check for sub-struct validity if (query != null) { query.validate(); } if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (name == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); } // alas, we cannot check 'enabled' because it's a primitive and you chose the non-beans generator. if (repositoryName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'repositoryName' was not present! Struct: " + toString()); } if (query == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'query' was not present! Struct: " + toString()); } // check for sub-struct validity if (query != null) { query.validate(); } if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (repositoryName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'repositoryName' was not present! Struct: " + toString()); } if (path == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'path' was not present! Struct: " + toString()); } if (propertyFilter == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'propertyFilter' was not present! Struct: " + toString()); } if (types == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'types' was not present! Struct: " + toString()); } // check for sub-struct validity if (propertyFilter != null) { propertyFilter.validate(); } if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (pluginName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pluginName' was not present! Struct: " + toString()); } if (operationName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'operationName' was not present! Struct: " + toString()); } if (paramDefs == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'paramDefs' was not present! Struct: " + toString()); } if (returnDef == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'returnDef' was not present! Struct: " + toString()); } // check for sub-struct validity if (returnDef != null) { returnDef.validate(); } if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (pluginName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pluginName' was not present! Struct: " + toString()); } if (operationName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'operationName' was not present! Struct: " + toString()); } if (paramDefs == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'paramDefs' was not present! Struct: " + toString()); } if (returnDef == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'returnDef' was not present! Struct: " + toString()); } // check for sub-struct validity if (returnDef != null) { returnDef.validate(); } if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (repositoryName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'repositoryName' was not present! Struct: " + toString()); } if (path == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'path' was not present! Struct: " + toString()); } if (propertyFilter == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'propertyFilter' was not present! Struct: " + toString()); } if (types == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'types' was not present! Struct: " + toString()); } // check for sub-struct validity if (propertyFilter != null) { propertyFilter.validate(); } if (comment != null) { comment.validate(); } }
detail.validate();