public Object getFieldValue(_Fields field) { switch (field) { case TYPE: return getType(); case CONTENT: return getContent(); } throw new IllegalStateException(); }
public PropertyFilter deepCopy() { return new PropertyFilter(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PropertyFilter) return this.equals((PropertyFilter)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public PropertyFilter(PropertyFilter other) { if (other.isSetType()) { this.type = other.type; } if (other.isSetContent()) { this.content = other.content; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TYPE: if (value == null) { unsetType(); } else { setType((PropertyFilterType)value); } break; case CONTENT: if (value == null) { unsetContent(); } else { setContent((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.PropertyFilterType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.content = iprot.readString(); struct.setContentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
case 3: // PROPERTY_FILTER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.propertyFilter = new PropertyFilter(); struct.propertyFilter.read(iprot); struct.setPropertyFilterIsSet(true); } else {
@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); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
/** * Performs a deep copy on <i>other</i>. */ public PropertyFilter(PropertyFilter other) { if (other.isSetType()) { this.type = other.type; } if (other.isSetContent()) { this.content = other.content; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TYPE: if (value == null) { unsetType(); } else { setType((PropertyFilterType)value); } break; case CONTENT: if (value == null) { unsetContent(); } else { setContent((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.PropertyFilterType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.content = iprot.readString(); struct.setContentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
case 3: // PROPERTY_FILTER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.propertyFilter = new PropertyFilter(); struct.propertyFilter.read(iprot); struct.setPropertyFilterIsSet(true); } else {
@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); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public Object getFieldValue(_Fields field) { switch (field) { case TYPE: return getType(); case CONTENT: return getContent(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TYPE: return isSetType(); case CONTENT: return isSetContent(); } throw new IllegalStateException(); }
@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); } } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PropertyFilter) return this.equals((PropertyFilter)that); return false; }
public PropertyFilter deepCopy() { return new PropertyFilter(this); }