@Nullable static ChangeType convert(@Nullable com.linecorp.centraldogma.common.ChangeType type) { if (type == null) { return null; } return ChangeType.valueOf(type.name()); } ////////////////
@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.ChangeType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else {
public ChangeDto(Change change) { requireNonNull(change, "change"); path = change.getPath(); type = change.getType().name(); content = change.getContent(); }
public boolean equals(DiffFileResult 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.ChangeType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else {
public ChangeDto(Change change) { requireNonNull(change, "change"); path = change.getPath(); type = change.getType().name(); content = change.getContent(); }
public boolean equals(DiffFileResult 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; }
@Nullable private static ChangeType convertChangeType(com.linecorp.centraldogma.common.ChangeType type) { if (type == null) { return null; } return ChangeType.valueOf(type.name()); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, DiffFileResult 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(); }
case 2: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.ChangeType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else {
public ChangeDto(Change change) { requireNonNull(change, "change"); path = change.getPath(); type = change.getType().name(); content = change.getContent(); }
public boolean equals(Change that) { if (that == null) return false; boolean this_present_path = true && this.isSetPath(); boolean that_present_path = true && that.isSetPath(); if (this_present_path || that_present_path) { if (!(this_present_path && that_present_path)) return false; if (!this.path.equals(that.path)) 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; }
@Nullable static ChangeType convert(@Nullable com.linecorp.centraldogma.common.ChangeType type) { if (type == null) { return null; } return ChangeType.valueOf(type.name()); } ////////////////
@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 2: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.ChangeType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else {
public boolean equals(Change that) { if (that == null) return false; boolean this_present_path = true && this.isSetPath(); boolean that_present_path = true && that.isSetPath(); if (this_present_path || that_present_path) { if (!(this_present_path && that_present_path)) return false; if (!this.path.equals(that.path)) 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; }
@Nullable private static ChangeType convertChangeType(com.linecorp.centraldogma.common.ChangeType type) { if (type == null) { return null; } return ChangeType.valueOf(type.name()); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, DiffFileResult 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, DiffFileResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = com.linecorp.centraldogma.internal.thrift.ChangeType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.content = iprot.readString(); struct.setContentIsSet(true); } }