public PropertyFilter deepCopy() { return new PropertyFilter(this); }
public PropertyFilter deepCopy() { return new PropertyFilter(this); }
/** * Performs a deep copy on <i>other</i>. */ public SchemaEntry(SchemaEntry other) { if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetPath()) { this.path = other.path; } if (other.isSetPropertyFilter()) { this.propertyFilter = new PropertyFilter(other.propertyFilter); } if (other.isSetTypes()) { List<PropertyType> __this__types = new ArrayList<PropertyType>(other.types.size()); for (PropertyType other_element : other.types) { __this__types.add(other_element); } this.types = __this__types; } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
/** * Performs a deep copy on <i>other</i>. */ public SchemaEntry(SchemaEntry other) { if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetPath()) { this.path = other.path; } if (other.isSetPropertyFilter()) { this.propertyFilter = new PropertyFilter(other.propertyFilter); } if (other.isSetTypes()) { List<PropertyType> __this__types = new ArrayList<PropertyType>(other.types.size()); for (PropertyType other_element : other.types) { __this__types.add(other_element); } this.types = __this__types; } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
case 3: // PROPERTY_FILTER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.propertyFilter = new PropertyFilter(); struct.propertyFilter.read(iprot); struct.setPropertyFilterIsSet(true);
case 3: // PROPERTY_FILTER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.propertyFilter = new PropertyFilter(); struct.propertyFilter.read(iprot); struct.setPropertyFilterIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, SchemaEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); struct.path = iprot.readString(); struct.setPathIsSet(true); struct.propertyFilter = new PropertyFilter(); struct.propertyFilter.read(iprot); struct.setPropertyFilterIsSet(true); { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.types = new ArrayList<PropertyType>(_list13.size); PropertyType _elem14; for (int _i15 = 0; _i15 < _list13.size; ++_i15) { _elem14 = com.linecorp.centraldogma.internal.thrift.PropertyType.findByValue(iprot.readI32()); struct.types.add(_elem14); } } struct.setTypesIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, SchemaEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); struct.path = iprot.readString(); struct.setPathIsSet(true); struct.propertyFilter = new PropertyFilter(); struct.propertyFilter.read(iprot); struct.setPropertyFilterIsSet(true); { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.types = new ArrayList<PropertyType>(_list21.size); PropertyType _elem22; for (int _i23 = 0; _i23 < _list21.size; ++_i23) { _elem22 = com.linecorp.centraldogma.internal.thrift.PropertyType.findByValue(iprot.readI32()); struct.types.add(_elem22); } } struct.setTypesIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }