public void setFieldValue(_Fields field, Object value) {
    switch (field) {
      case PROPERTIES:
        if (value == null) {
          unset_properties();
        } else {
          set_properties((ByteBuffer) value);
        }
        break;

      case PARTITIONS:
        if (value == null) {
          unset_partitions();
        } else {
          set_partitions((Map<Integer, PartitionMetadata>) value);
        }
        break;

      case DEFUNCT:
        if (value == null) {
          unset_defunct();
        } else {
          set_defunct((Boolean) value);
        }
        break;

      case CLOSED_AT:
        if (value == null) {
          unset_closed_at();
        } else {
          set_closed_at((Long) value);
        }
        break;
    }
  }
 public DomainVersionMetadata set_properties(byte[] properties) {
   set_properties(properties == null ? (ByteBuffer) null : ByteBuffer.wrap(properties));
   return this;
 }
 public byte[] get_properties() {
   set_properties(org.apache.thrift.TBaseHelper.rightSize(properties));
   return properties == null ? null : properties.array();
 }