public PropertyFilterDto(PropertyFilter filter) { type = filter.getType().name(); content = filter.getContent(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); return list.hashCode(); }
case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.PropertyFilterType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else {
public boolean equals(PropertyFilter that) { if (that == null) return false; boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_content = true && this.isSetContent(); boolean that_present_content = true && that.isSetContent(); if (this_present_content || that_present_content) { if (!(this_present_content && that_present_content)) return false; if (!this.content.equals(that.content)) return false; } return true; }
case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.PropertyFilterType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else {
public boolean equals(PropertyFilter that) { if (that == null) return false; boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_content = true && this.isSetContent(); boolean that_present_content = true && that.isSetContent(); if (this_present_content || that_present_content) { if (!(this_present_content && that_present_content)) return false; if (!this.content.equals(that.content)) return false; } return true; }
public PropertyFilterDto(PropertyFilter filter) { type = filter.getType().name(); content = filter.getContent(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_type = true && (isSetType()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); return list.hashCode(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PropertyFilter struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = com.linecorp.centraldogma.internal.thrift.PropertyFilterType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.content = iprot.readString(); struct.setContentIsSet(true); } }
public PropertyFilterDto(PropertyFilter filter) { type = filter.getType().name(); content = filter.getContent(); }
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(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PropertyFilter struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = com.linecorp.centraldogma.internal.thrift.PropertyFilterType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.content = iprot.readString(); struct.setContentIsSet(true); } }
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(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PropertyFilter struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeString(struct.content); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PropertyFilter struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeString(struct.content); }