public void write(org.apache.thrift.protocol.TProtocol oprot, PropertyFilter struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, PropertyFilter struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.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 (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(); } }